| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<project name="antcallbacktest" basedir="." default="test1"> |
| 4 |
<description> |
| 5 |
test build file for the AntCallBack task |
| 6 |
</description> |
| 7 |
|
| 8 |
<taskdef resource="net/sf/antcontrib/antcontrib.properties"> |
| 9 |
<classpath location="${antcontrib.jar}"/> |
| 10 |
</taskdef> |
| 11 |
|
| 12 |
|
| 13 |
<target name="test1"> |
| 14 |
<antcallback target="setProperty" return="prop1"/> |
| 15 |
</target> |
| 16 |
|
| 17 |
<target name="test2"> |
| 18 |
<antcallback target="setProperties" return="prop1,prop2,prop3"/> |
| 19 |
</target> |
| 20 |
|
| 21 |
<target name="test3"> |
| 22 |
<antcallback target="setProperties" return="prop1, prop2, prop3"/> |
| 23 |
</target> |
| 24 |
|
| 25 |
<target name="test4"> |
| 26 |
<antcallback target="setTwoProperties" return="prop1, prop2, prop3"/> |
| 27 |
</target> |
| 28 |
|
| 29 |
<target name="test5"> |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
<antcallback target="setProperties" return="prop1, prop2, prop3"> |
| 34 |
<param name="prop1" value="blah"/> |
| 35 |
</antcallback> |
| 36 |
</target> |
| 37 |
|
| 38 |
<target name="setProperty"> |
| 39 |
<property name="prop1" value="prop1"/> |
| 40 |
</target> |
| 41 |
|
| 42 |
<target name="setTwoProperties"> |
| 43 |
<property name="prop2" value="prop2"/> |
| 44 |
<property name="prop3" value="prop3"/> |
| 45 |
</target> |
| 46 |
|
| 47 |
<target name="setProperties"> |
| 48 |
<property name="prop1" value="prop1"/> |
| 49 |
<property name="prop2" value="prop2"/> |
| 50 |
<property name="prop3" value="prop3"/> |
| 51 |
</target> |
| 52 |
|
| 53 |
<target name="setNoProperties"/> |
| 54 |
</project> |