view java/build.xml @ 280:d5e5c73af7e6

reorginazed save corruption code
author Robert McIntyre <rlm@mit.edu>
date Tue, 27 Mar 2012 21:08:44 -0500
parents 9d3769896d66
children 09b3bc0b71b5
line wrap: on
line source
1 <project name="gb-bindings" default="dist" basedir=".">
3 <property name="build" value="build"/>
4 <property name="src" value="src"/>
5 <property name="dist" value="dist"/>
6 <property name="headers" value="headers"/>
7 <property name="artifacts" value="../artifacts"/>
9 <target name="prepare">
10 <mkdir dir="${build}"/>
11 <mkdir dir="${headers}"/>
12 <mkdir dir="${dist}"/>
13 </target>
15 <target name="compile" depends="prepare" >
16 <javac srcdir="${src}" destdir="${build}"
17 includeantruntime="false"/>
18 </target>
20 <target name="native" depends="prepare, compile" >
21 <javah class="com.aurellem.gb.Gb"
22 destdir="${headers}"
23 classpath="${build}"/>
24 </target>
26 <target name="dist">
27 <jar jarfile="${dist}/gb-bindings.jar">
28 <fileset dir="${build}"/>
29 <fileset dir="${src}"/>
30 </jar>
31 </target>
33 <target name="all" depends="native, dist"/>
36 <target name="clean" >
37 <delete dir="${build}"/>
38 <delete dir="${dist}"/>
39 <delete dir="${headers}"/>
40 </target>
42 </project>