-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
50 lines (39 loc) · 1.15 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<project name="AlchemyAPI" default="compile" basedir=".">
<description>
Build file for AlchemyAPI code / examples.
</description>
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="dist" location="dist"/>
<property name="depend" location="depend"/>
<target name="clean">
<delete dir="${bin}"/>
<delete dir="${dist}"/>
</target>
<target name="prepare">
<tstamp/>
<mkdir dir="${bin}"/>
<mkdir dir="${dist}"/>
</target>
<path id="classpath">
<pathelement path="${java.class.path}"/>
<fileset dir="${depend}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile" depends="prepare">
<property name="myclasspath" refid="classpath"/>
<!-- Emit the property to the ant console -->
<echo message="Classpath = ${myclasspath}"/>
<javac srcdir="${src}" destdir="${bin}" debug="true" debuglevel="lines,vars,source">
<classpath refid="classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${dist}/AlchemyAPIAndroid.jar">
<fileset dir="${bin}">
<include name="**/api/**"/>
</fileset>
</jar>
</target>
</project>