Forced source file encoding in build scripts and eclipse settings
[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     </javac>
36   </target>
37
38 <!-- Assemble the jarfile -->
39   <target name="assemble" depends="compile">
40     <!-- jar jarfile="${my.jar}">
41       <fileset dir="${my-classes.dir}"/>
42     </jar -->
43   </target>
44
45 <!-- Do it all -->
46   <target name="all" depends="assemble"/>
47
48 <!-- Clean everything -->
49   <target name="clean">
50     <delete dir="${my-build.dir}" quiet="true"/>
51   </target>
52
53 </project>
54
55