Debian Codegraph @

test/resources/antclipse/antclipsetest.xml

raw symbols SCIP
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 <!-- creates a fileset including all the files from the output directory, called ecl1-bin if your binary directory is bin/ -->
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 <!-- creates a fileset for each source directory, called ecl2-*source-dir-name*/ -->
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 <!-- creates a fileset sontaining all your project libs called ecl3/ -->
21 <antclipse produce="fileset" idcontainer="ecl3" verbose="true"/>
22 </target>
23
24 <target name="make.cp">
25 <!-- creates a fileset sontaining all your project libs called ecl3/ -->
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 <!-- makes a jar file with the content of the output directory -->
33 <zip destfile="out.jar"><fileset refid="ecl1-${ecl1outpath}"/></zip>
34 <!-- makes a zip file with all your sources (supposing you have only source directory) -->
35 <zip destfile="src.zip"><fileset refid="ecl2-${ecl2srcpath}"/></zip>
36 <!-- makes a big zip file with all your project libraries -->
37 <zip destfile="libs.zip"><fileset refid="ecl3"/></zip>
38 <!-- imports the classpath into a property then echoes the property -->
39 <property name="cpcontent" refid="eclp"/>
40 <echo>The newly created classpath is ${cpcontent}</echo>
41 </target>
42 </project>