<?xml version="1.0"?>
|
|
<project basedir= "." name= "properties-test" default= "main" > |
<taskdef classpath= "orangevolt-ant-tasks-1.3.2.jar" resource= "com/orangevolt/tools/ant/taskdefs.properties" /> |
<target name= "main" > |
<!-- |
find the jar file and put its name
|
into property "custom-tasks-jarfile"
|
-->
|
<find dir= "lib" |
file=
"my-custom-tasks-*.jar" |
nameProperty=
"custom-tasks-jarfile" |
/>
|
<!-- |
use the jar file name
|
to load the tasks and taskdefs
|
-->
|
<taskdef resource= "custom/tasks/taskdefs.properties" > |
<classpath> |
<pathelement path= "." /> |
<pathelement location= "lib/${custom-tasks-jarfile}" /> |
</classpath> |
</taskdef> |
</target> |
</project> |