| 1 |
<?xml version="1.0"?> |
| 2 |
<project default="everything" name="Antclipse test xml file" basedir="."> |
| 3 |
<taskdef resource="net/sf/antcontrib/antcontrib.properties"> |
| 4 |
<classpath location="${antcontrib.jar}"/> |
| 5 |
</taskdef> |
| 6 |
|
| 7 |
<target name="make.fs.output"> |
| 8 |
|
| 9 |
<antclipse produce="fileset" idcontainer="ecl1" includeoutput="true" includesource="false" |
| 10 |
includelibs="false" verbose="true"/> |
| 11 |
</target> |
| 12 |
|
| 13 |
<target name="make.fs.sources"> |
| 14 |
|
| 15 |
<antclipse produce="fileset" idcontainer="ecl2" includeoutput="false" includesource="true" |
| 16 |
includelibs="false" verbose="true"/> |
| 17 |
</target> |
| 18 |
|
| 19 |
<target name="make.fs.libs"> |
| 20 |
|
| 21 |
<antclipse produce="fileset" idcontainer="ecl3" verbose="true"/> |
| 22 |
</target> |
| 23 |
|
| 24 |
<target name="make.cp"> |
| 25 |
|
| 26 |
<antclipse produce="classpath" idcontainer="eclp" verbose="true" includeoutput="true"/> |
| 27 |
</target> |
| 28 |
|
| 29 |
<target name="everything" depends="make.fs.libs, make.fs.output, make.fs.sources, make.cp"> |
| 30 |
<echo message="The output path is ${ecl1outpath}"/> |
| 31 |
<echo message="The source path is ${ecl2srcpath}"/> |
| 32 |
|
| 33 |
<zip destfile="out.jar"><fileset refid="ecl1-${ecl1outpath}"/></zip> |
| 34 |
|
| 35 |
<zip destfile="src.zip"><fileset refid="ecl2-${ecl2srcpath}"/></zip> |
| 36 |
|
| 37 |
<zip destfile="libs.zip"><fileset refid="ecl3"/></zip> |
| 38 |
|
| 39 |
<property name="cpcontent" refid="eclp"/> |
| 40 |
<echo>The newly created classpath is ${cpcontent}</echo> |
| 41 |
</target> |
| 42 |
</project> |