Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
Latest commit
49 lines (39 loc) · 1.54 KB
/
Copy pathbuild.xml
File metadata and controls
49 lines (39 loc) · 1.54 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
<projectname="java-websocket-client"default="dist">
<propertyfile="local.properties"/>
<targetname="init-base">
<mkdirdir="build"/>
<mkdirdir="build/classes"/>
<mkdirdir="build/android-classes"/>
<mkdirdir="build/dist"/>
<availableproperty="has.android.jar"file="${android.jar}"/>
</target>
<targetname="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>
<targetname="init"depends="init-base,init-no-android"/>
<targetname="clean">
<deletedir="build"/>
</target>
<targetname="compile-core">
<javacsrcdir="src"destdir="build/classes"target="1.5"source="1.5"debug="true"includeantruntime="false"/>
</target>
<targetname="compile-android"if="has.android.jar">
<javacsrcdir="android"destdir="build/android-classes"target="1.5"source="1.5"debug="true"includeantruntime="false">
<classpath>
<pathelementlocation="build/classes"/>
<pathelementlocation="${android.jar}"/>
</classpath>
</javac>
</target>
<targetname="compile"depends="init,compile-core,compile-android"/>
<targetname="dist-android"if="has.android.jar">
<jarjarfile="build/dist/java-websocket-client-android.jar">
<filesetdir="build/classes"/>
<filesetdir="build/android-classes"/>
</jar>
</target>
<targetname="dist"depends="compile,dist-android">
<jarjarfile="build/dist/java-websocket-client.jar"basedir="build/classes"/>
</target>
</project>