-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
75 lines (63 loc) · 2.19 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="UTF-8"?>
<project name="crossmobile" default="install" basedir=".">
<description>Builds and installs CrossMobile environment.</description>
<target name="install">
<ant dir="src/xmioslayer" target="jar"/>
<ant dir="src/xmbuild" target="jar"/>
<copy file="dist/xmioslayer.jar" todir="${user.home}/.mobiledev/lib"/>
<copy file="dist/xmbuild.jar" todir="${user.home}/.mobiledev/lib"/>
</target>
<target name="update" depends="-xmlvm-jar,install">
<copy file="dist/xmlvm.jar" todir="${user.home}/.mobiledev/lib"/>
</target>
<target name="fastclean">
<ant dir="src/xmgui" target="clean"/>
<ant dir="src/xmbuild" target="clean"/>
<ant dir="src/xmioslayer" target="clean"/>
</target>
<target name="clean" depends="fastclean">
<ant dir="xmlvm" target="clean"/>
<ant dir="mine" target="clean"/>
</target>
<target name="android">
<exec executable="bash" dir="src/xmioslayer">
<arg value="select"/>
<arg value="android"/>
</exec>
</target>
<target name="swing">
<exec executable="bash" dir="src/xmioslayer">
<arg value="select"/>
<arg value="swing"/>
</exec>
</target>
<target name="both">
<exec executable="bash" dir="src/xmioslayer">
<arg value="select"/>
<arg value="both"/>
</exec>
</target>
<!-- Initialize control properties -->
<target name="-init">
<available file="xmlvm/build.xml" property="xmlvm.repository.available"/>
<available file="dist/xmlvm.jar" property="xmlvm.jar.available"/>
</target>
<!-- Download XMLVM repository -->
<target name="-xmlvm-repository" depends="-init" unless="xmlvm.repository.available">
<exec executable="svn" failonerror="true">
<arg value="co"/>
<arg value="https://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm"/>
</exec>
</target>
<!-- svn update xmlvm repository -->
<target name ="-xmlvm-update" depends="-init">
<exec executable="svn" failonerror="true" dir="xmlvm">
<arg value="update"/>
</exec>
</target>
<!-- Compile xmlvm.jar -->
<target name="-xmlvm-jar" depends="-init,-xmlvm-repository,-xmlvm-update" unless="xmlvm.jar.available">
<ant dir="xmlvm" target="jar"/>
<move file="xmlvm/dist/xmlvm.jar" tofile="dist/xmlvm.jar"/>
</target>
</project>