forked from SpatialInteractive/java-websocket-client
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
49 lines (39 loc) · 1.54 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
<project name="java-websocket-client" default="dist">
<property file="local.properties"/>
<target name="init-base">
<mkdir dir="build"/>
<mkdir dir="build/classes"/>
<mkdir dir="build/android-classes"/>
<mkdir dir="build/dist"/>
<available property="has.android.jar" file="${android.jar}"/>
</target>
<target name="init-no-android" unless="has.android.jar">
<echo>Android support will not be built because the property android.jar is not</echo>
<echo>set correctly. It is currently ${android.jar}</echo>
</target>
<target name="init" depends="init-base,init-no-android"/>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile-core">
<javac srcdir="src" destdir="build/classes" target="1.5" source="1.5" debug="true" includeantruntime="false"/>
</target>
<target name="compile-android" if="has.android.jar">
<javac srcdir="android" destdir="build/android-classes" target="1.5" source="1.5" debug="true" includeantruntime="false">
<classpath>
<pathelement location="build/classes"/>
<pathelement location="${android.jar}"/>
</classpath>
</javac>
</target>
<target name="compile" depends="init,compile-core,compile-android"/>
<target name="dist-android" if="has.android.jar">
<jar jarfile="build/dist/java-websocket-client-android.jar">
<fileset dir="build/classes"/>
<fileset dir="build/android-classes"/>
</jar>
</target>
<target name="dist" depends="compile,dist-android">
<jar jarfile="build/dist/java-websocket-client.jar" basedir="build/classes"/>
</target>
</project>