Tweak configure.sh script to pick up newest version of configure classes.
[jnode:svn-mirror.git] / gui / build.xml
1 <project name="JNode-GUI" 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-gui.jar}"/>
9
10 <!-- Subproject specific classpath -->
11   <path id="my-cp">
12     <pathelement location="${jnode-core.jar}"/>
13     <pathelement location="${jnode-shell.jar}"/>
14     <path refid="cp"/>
15   </path>
16
17 <!-- Initialize all subproject directories -->
18   <target name="prepare">
19     <mkdir dir="${my-classes.dir}"/>
20         <jnode.copy-descriptors/>
21   </target>
22
23 <!-- Compile all subproject java files -->
24   <target name="compile" depends="prepare">
25     <jnode.compile>
26           <src path="${my-src.dir}/awt"/>
27           <src path="${my-src.dir}/desktop"/>
28       <src path="${my-src.dir}/driver"/>
29           <src path="${my-src.dir}/test"/>
30       <src path="${my-src.dir}/thinlet"/>
31       <src path="${my-src.dir}/font"/>  
32       <classpath refid="my-cp"/>
33     </jnode.compile>
34         <!-- copy properties files -->
35     <copy todir="${my-classes.dir}/org/jnode/font/bdf/">
36           <fileset dir="${my-src.dir}/font/org/jnode/font/bdf/">
37             <include name="**/*.properties" />
38           </fileset>        
39     </copy>             
40   </target>
41
42 <!-- Assemble the jarfile -->
43   <target name="assemble" depends="compile">
44     <jar jarfile="${jnode-fonts.jar}">
45       <fileset dir="${basedir}/fonts">
46       </fileset>
47     </jar>
48     <jar jarfile="${jnode-images.jar}">
49       <fileset dir="${basedir}/images">
50       </fileset>
51     </jar>
52   </target>
53
54 <!-- Do it all -->
55   <target name="all" depends="assemble"/>
56
57 <!-- Clean everything -->
58   <target name="clean">
59         <jnode.clean/>
60   </target>
61
62 </project>
63
64