added property compilerarg that can be overwritten in jnode.properties
[jnode:svn-mirror.git] / textui / build.xml
1 <project name="JNode-TextUI" default="all" basedir=".">
2
3   <property name="my-build.dir"   value="${basedir}/build"/>
4   <property name="my-classes.dir" value="${my-build.dir}/classes"/>
5   <property name="my-src.dir"     value="${basedir}/src"/>
6   <property name="my.jar"         value="${jnode-textui.jar}"/>
7
8 <!-- Subproject specific classpath -->
9   <path id="my-cp">
10     <pathelement location="${jnode-core.jar}"/>
11     <pathelement location="${jnode-shell.jar}"/>
12     <path refid="cp"/>
13   </path>
14
15 <!-- Initialize all subproject directories -->
16   <target name="prepare">
17     <mkdir dir="${my-classes.dir}"/>
18     <copy todir="${descriptors.dir}">
19       <fileset dir="${basedir}/descriptors"/>
20           <filterset refid="descriptors-filter"/>
21     </copy>
22   </target>
23
24 <!-- Compile all subproject java files -->
25   <target name="compile" depends="prepare">
26     <javac destdir="${my-classes.dir}"
27                debug="on"
28                optimize="on"
29            compiler="modern"
30                includeJavaRuntime="false"
31         target="${java.target}" source="${java.source}" encoding="${java.encoding}">
32       <bootclasspath path="${jnode-core.jar}"/>
33       <src path="${my-src.dir}/textui"/>
34       <classpath refid="my-cp"/>
35       <compilerarg value="${compilerarg}"/>
36     </javac>
37   </target>
38
39 <!-- Assemble the jarfile -->
40   <target name="assemble" depends="compile">
41     <!-- jar jarfile="${my.jar}">
42       <fileset dir="${my-classes.dir}"/>
43     </jar -->
44   </target>
45
46 <!-- Do it all -->
47   <target name="all" depends="assemble"/>
48
49 <!-- Clean everything -->
50   <target name="clean">
51     <delete dir="${my-build.dir}" quiet="true"/>
52   </target>
53
54 </project>
55
56