Mercurial > vba-clojure
comparison java/build.xml @ 44:9d3769896d66
created java folder and simple build script
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 06 Mar 2012 21:53:31 -0600 |
parents | |
children | 09b3bc0b71b5 |
comparison
equal
deleted
inserted
replaced
43:480951f6521d | 44:9d3769896d66 |
---|---|
1 <project name="gb-bindings" default="dist" basedir="."> | |
2 | |
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"/> | |
8 | |
9 <target name="prepare"> | |
10 <mkdir dir="${build}"/> | |
11 <mkdir dir="${headers}"/> | |
12 <mkdir dir="${dist}"/> | |
13 </target> | |
14 | |
15 <target name="compile" depends="prepare" > | |
16 <javac srcdir="${src}" destdir="${build}" | |
17 includeantruntime="false"/> | |
18 </target> | |
19 | |
20 <target name="native" depends="prepare, compile" > | |
21 <javah class="com.aurellem.gb.Gb" | |
22 destdir="${headers}" | |
23 classpath="${build}"/> | |
24 </target> | |
25 | |
26 <target name="dist"> | |
27 <jar jarfile="${dist}/gb-bindings.jar"> | |
28 <fileset dir="${build}"/> | |
29 <fileset dir="${src}"/> | |
30 </jar> | |
31 </target> | |
32 | |
33 <target name="all" depends="native, dist"/> | |
34 | |
35 | |
36 <target name="clean" > | |
37 <delete dir="${build}"/> | |
38 <delete dir="${dist}"/> | |
39 <delete dir="${headers}"/> | |
40 </target> | |
41 | |
42 </project> | |
43 |