Tweak configure.sh script to pick up newest version of configure classes.
[jnode:svn-mirror.git] / distr / build.xml
1 <project name="JNode-Distr" default="all" basedir=".">
2
3   <typedef file="${basedir}/../all/lib/jnode.xml"/>
4                 
5   <property name="my-build.dir"   value="${basedir}/build"/>
6   <property name="my-classes.dir" value="${my-build.dir}/classes"/>
7   <property name="my-src.dir"     value="${basedir}/src"/>
8   <property name="my.jar"         value="${jnode-distr.jar}"/>
9
10   <property name="junit4.jar" value="${basedir}/lib/junit-4.1.jar"/>
11         
12 <!-- Subproject specific classpath -->
13   <path id="my-cp">
14     <pathelement location="${jnode-core.jar}"/>
15     <pathelement location="${jnode-gui.jar}"/>
16     <pathelement location="${jnode-textui.jar}"/>
17     <pathelement location="${jnode-shell.jar}"/>
18         <pathelement location="${jnode-fs.jar}"/>
19         
20     <pathelement location="${junit4.jar}"/>
21         <pathelement location="${telnetd.jar}"/>
22
23     <pathelement location="${jetty.jar}"/>
24         <pathelement location="${jetty-util.jar}"/>
25
26     <path refid="cp"/>
27   </path>
28
29 <!-- Initialize all subproject directories -->
30   <target name="prepare">
31     <mkdir dir="${my-classes.dir}"/>
32     <mkdir dir="${my-build.dir}"/>
33         <jnode.copy-descriptors/>
34   </target>
35
36 <!-- Compile all subproject java files -->
37   <target name="compile" depends="prepare">
38     <jnode.compile>
39           <src path="${my-src.dir}/apps"/>
40           <src path="${my-src.dir}/emu"/>
41           <src path="${my-src.dir}/install"/>
42           <src path="${my-src.dir}/test"/>
43       <classpath refid="my-cp"/>
44     </jnode.compile>
45
46         <!-- copy properties files -->
47     <copy todir="${my-classes.dir}/org/jnode/apps/telnetd">
48           <fileset dir="${my-src.dir}/apps/org/jnode/apps/telnetd">
49             <include name="**/*.properties" />
50           </fileset>
51     </copy>
52   </target>
53
54 <!-- Assemble the jarfile(s) -->
55   <target name="assemble" depends="compile">
56         <jar jarfile="${jnode-configure.jar}"
57             basedir="${my-classes.dir}"
58         includes="org/jnode/configure/**"/>
59   </target>
60
61 <!-- Do it all -->
62   <target name="all" depends="assemble"/>
63
64 <!-- Clean everything -->
65   <target name="clean">
66     <jnode.clean/>
67   </target>
68
69 </project>
70
71