This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbuild.xml
114 lines (103 loc) · 3.8 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<project name="Java Bells" default="jar" basedir=".">
<description>
Builds Java Bells, a Jingle jibrary for java.
</description>
<property name="src" location="src" />
<property name="build" location="build" />
<property name="target" location="target" />
<property file="passwords.props" />
<!-- jars/dependent libraries -->
<path id="jars.list">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<property name="jars" refid="jars.list" />
<target name="init">
<tstamp />
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" debug="true" debuglevel="lines,source" destdir="${build}" source="1.6" target="1.6" includeantruntime="false"
classpath="${classpath}:${jars}" />
</target>
<target name="test" depends="compile">
<java classname="com.xonami.javaBellsSample.JavaBellsSample" fork="true" dir="." classpath="${classpath}:${jars}:${build}">
<arg value="JavaBellsSample" />
<arg value="CALL_AND_ANSWER" />
<arg value="${username}" />
<arg value="${password}" />
<arg value="${host}" />
<jvmarg value="-Djava.library.path=${java.library.path}:lib/native/mac" />
</java>
</target>
<target name="jar" depends="compile">
<jar destfile="${target}/java-bells-no-deps.jar" basedir="${build}" includes="**" />
<jar destfile="${target}/java-bells-with-deps.jar">
<fileset dir="${build}"/>
<restrict>
<archives>
<zips>
<fileset dir="lib" includes="**/*.jar"/>
</zips>
</archives>
<not><name name="META-INF/*.SF" /></not>
<not><name name="META-INF/*.DSA" /></not>
<not><name name="META-INF/*.RSA" /></not>
</restrict>
</jar>
</target>
<target name="testanswer" depends="compile">
<java classname="com.xonami.javaBellsSample.JavaBellsSample" fork="true" dir="." classpath="${classpath}:${jars}:${build}">
<arg value="JavaBellsSample" />
<arg value="ANSWER" />
<arg value="${username}" />
<arg value="${password}" />
<arg value="${host}" />
<jvmarg value="-Djava.library.path=${java.library.path}:lib/native/mac" />
</java>
</target>
<target name="testcall" depends="compile">
<java classname="com.xonami.javaBellsSample.JavaBellsSample" fork="true" dir="." classpath="${classpath}:${jars}:${build}">
<arg value="JavaBellsSample" />
<arg value="CALL" />
<arg value="${username}" />
<arg value="${password}" />
<arg value="${host}" />
<jvmarg value="-Djava.library.path=${java.library.path}:lib/native/mac" />
</java>
</target>
<target name="testanswer2" depends="compile">
<java classname="com.xonami.javaBellsSample.JavaBellsSample2" fork="true" dir="." classpath="${classpath}:${jars}:${build}">
<arg value="JavaBellsSample2" />
<arg value="ANSWER" />
<arg value="${username}" />
<arg value="${password}" />
<arg value="${host}" />
<jvmarg value="-Djava.library.path=${java.library.path}:lib/native/mac" />
</java>
</target>
<target name="testcall2" depends="compile">
<java classname="com.xonami.javaBellsSample.JavaBellsSample2" fork="true" dir="." classpath="${classpath}:${jars}:${build}">
<arg value="JavaBellsSample2" />
<arg value="CALL" />
<arg value="${username}" />
<arg value="${password}" />
<arg value="${host}" />
<jvmarg value="-Djava.library.path=${java.library.path}:lib/native/mac" />
</java>
</target>
<target name="testcallout" depends="compile">
<java classname="com.xonami.javaBellsSample.JavaBellsCallerSample" fork="true" dir="." classpath="${classpath}:${jars}:${build}">
<arg value="JavaBellsCallerSample" />
<arg value="${username}" />
<arg value="${password}" />
<arg value="${host}" />
<jvmarg value="-Djava.library.path=${java.library.path}:lib/native/mac" />
</java>
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${target}" />
</target>
</project>