forked from rollbar/rollbar-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
38 lines (29 loc) · 1.44 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="rollbar-android" default="clean-build" basedir=".">
<property name="version" value="0.0.6"/>
<!-- NOTE target property used from this file -->
<loadproperties srcFile="project.properties"/>
<!-- NOTE sdk.dir property must be declared in this file -->
<loadproperties srcFile="local.properties"/>
<property name="build.sysclasspath" value="last"/>
<property name="android.jar" value="${sdk.dir}/platforms/${target}/android.jar"/>
<target name="check-android-jar">
<available file="${android.jar}" property="android.jar.exists"/>
<fail message="Could not locate android.jar: '${android.jar}'${line.separator}Make sure you define 'sdk.dir' in local.properties and have corresponding platform installed" unless="android.jar.exists"/>
</target>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile" depends="check-android-jar">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" classpath="${android.jar}"/>
</target>
<target name="jar">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/rollbar-android-${version}.jar" basedir="build/classes">
<!-- <zipgroupfileset dir="libs" includes="*.jar"/> -->
</jar>
</target>
<target name="build" depends="compile,jar"/>
<target name="clean-build" depends="clean,build"/>
</project>