-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·63 lines (56 loc) · 2.14 KB
/
Copy pathbuild.xml
File metadata and controls
executable file
·63 lines (56 loc) · 2.14 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project name="build-androidpn-client" default="build" basedir=".">
<property file="./build.properties" />
<!-- Global properties -->
<property name="src.dir" value="src" />
<property name="lib.dir" value="lib" />
<property name="target.dir" value="target" />
<property name="target.classes.dir" value="target/classes" />
<!-- Classpath declaration -->
<path id="project.classpath">
<pathelement path="${target.classes.dir}" />
<pathelement path="${android.sdk.jar}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
<include name="**/*.zip" />
</fileset>
</path>
<target name="clean">
<delete dir="${target.dir}" />
</target>
<target name="compile">
<mkdir dir="${target.classes.dir}" />
<javac srcdir="${src.dir}" destdir="${target.classes.dir}" debug="true" deprecation="false" optimize="false" failonerror="true">
<classpath refid="project.classpath" />
<include name="**/client/*.*" />
</javac>
</target>
<target name="build" depends="clean, compile">
<jar jarfile="${target.dir}/${project.name}-${project.version}.jar">
<fileset dir="${target.classes.dir}" includes="**/*.class" />
<zipfileset src="${lib.dir}/asmack.jar" excludes="META-INF/*" />
</jar>
<!--
<zip destfile="${target.dir}/${project.name}-${project.version}.zip">
<fileset dir="${basedir}" excludes="bin/**,doc/**,gen/**,target/**,temp/**,javadoc.xml" />
</zip>
-->
<mkdir dir="${target.dir}/${project.name}-${project.version}" />
<copy todir="${target.dir}/${project.name}-${project.version}">
<fileset dir="${basedir}">
<patternset>
<exclude name="bin/**" />
<exclude name="doc/**" />
<exclude name="gen/**" />
<exclude name="target/**" />
<exclude name="temp/**" />
<exclude name="changelog.txt" />
<exclude name="javadoc.xml" />
</patternset>
</fileset>
</copy>
<zip destfile="${target.dir}/${project.name}-${project.version}.zip">
<fileset dir="${target.dir}" includes="${project.name}-${project.version}/**" />
</zip>
<delete dir="${target.dir}/${project.name}-${project.version}" />
</target>
</project>