source: patches/NetKernel/trunk/src/modules/build.xml @ 2029

Last change on this file since 2029 was 2029, checked in by mwindhouwer, 12 years ago

Initial import of all the *cats, i.e., ISOcat, RELcat and SCHEMAcat.

File size: 1.4 KB
Line 
1<project name="accessors" default="all" basedir=".">
2
3        <description>Build a 1060 NK module</description>
4
5        <!-- use 'ant -Dmod=<mod>' to set the module from the command line -->
6        <property name="mod" location="mod"/>
7        <property name="nk"  location=".."/>
8       
9        <property name="debug"    value="true"/>
10        <property name="optimize" value="off"/>
11
12        <available file="${mod}.jar.ORG" property="original.present"/>
13
14        <target name="original" unless="original.present">
15                <copy file="${mod}.jar" tofile="${mod}.jar.ORG" preservelastmodified="true"/>
16        </target>
17
18        <target name="compile" depends="original" description="compile the source">
19                <javac destdir="${mod}" debug="${debug}" optimize="${optimize}">
20                        <src path="${mod}"/>
21                        <classpath>
22                                <fileset dir="${nk}/lib">
23                                        <include name="**/*.jar"/>
24                                </fileset>
25                                <fileset dir="${nk}/modules">
26                                        <include name="**/*.jar"/>
27                                </fileset>
28                                <fileset dir="${mod}/lib" erroronmissingdir="false">
29                                        <include name="**/*.jar"/>
30                                </fileset> 
31                        </classpath>
32                </javac>
33        </target>
34
35        <target name="pack" depends="compile" description="generate the distribution" >
36                <jar jarfile="${mod}.jar.NEW" basedir="${mod}"/>
37        </target>
38
39        <target name="backup" depends="pack">
40                <move file="${mod}.jar"     tofile="${mod}.jar.OLD"/>
41                <move file="${mod}.jar.NEW" tofile="${mod}.jar"/>
42        </target>
43
44        <target name="all" depends="backup"/>
45</project>
Note: See TracBrowser for help on using the repository browser.