-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
49 lines (42 loc) · 1.57 KB
/
build.xml
File metadata and controls
49 lines (42 loc) · 1.57 KB
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 default="all">
<property environment="env"/>
<property name="src.dir" value="src"/>
<property name="bin.dir" value="bin"/>
<property name="test.dir" value="test"/>
<property name="res.dir" value="resource"/>
<property name="junit" value="${env.JUNIT_HOME}"/>
<property name="android.dir" value="${env.ANDROID_HOME}"/>
<property name="android.version" value="${env.ANDROID_VERSION}"/>
<property name="android.sdk.dir" value="${android.dir}/platforms/android-${android.version}"/>
<property name="cp" value="${bin.dir}:${android.sdk.dir}/android.jar"/>
<target name="dirs">
<mkdir dir="${bin.dir}"/>
<mkdir dir="${test.dir}"/>
</target>
<target name="all" depends="main,test,jar"/>
<target name="main" depends="dirs">
<javac includeantruntime="false" classpath="${cp}" debug="on" srcdir="${src.dir}" destdir="${bin.dir}">
<compilerarg value="-Xlint:all"/>
</javac>
</target>
<target name="clean">
<delete dir="${bin.dir}"/>
<delete file="util.jar"/>
</target>
<target name="jar" depends="copyFiles">
<jar destfile="util.jar" basedir="bin" manifest="manifest.txt">
</jar>
</target>
<target name="copyFiles">
<!-- Any extra files (resources, etc.) you need in the JAR, copy them here.
<copy todir="${bin.dir}/resource">
<fileset dir="${res.dir}" />
</copy>
-->
</target>
<target name="test">
<javac includeantruntime="false" classpath="${cp};${junit}/junit-4.8.2.jar" debug="on" srcdir="${test.dir}" destdir="${bin.dir}">
<compilerarg value="-Xlint:all"/>
</javac>
</target>
</project>