-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
69 lines (50 loc) · 2.09 KB
/
Copy pathbuild.xml
File metadata and controls
69 lines (50 loc) · 2.09 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
64
65
66
67
68
<project name="JAMAL" default="jar" basedir=".">
<property file="build.properties"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<target name="init">
<echo message="The following properties were loaded from build.properties"/>
<echo message="build.dir = ${build.dir}"/>
<echo message="app.name = ${app.name}"/>
<echo message="version = ${version}"/>
<property name="lib.path" value="lib"/>
<property name="src.path" value="src/main/java"/>
<path id="src.classpath">
<pathelement location="${lib.path}/jmi-1.0.jar"/>
</path>
<mkdir dir="${build.dir}"/>
</target>
<target name="compile" depends="init">
<mkdir dir="${classes.dir}"/>
<javac debug="true" destdir="${classes.dir}">
<src path="${src.path}"/>
<classpath refid="src.classpath"/>
</javac>
<copy todir="${classes.dir}">
<fileset dir="${src.path}"/>
</copy>
</target>
<target name="rmic" depends="compile">
<rmic classname="com.jamal.server.MatlabCallerImpl" base="${classes.dir}"/>
</target>
<target name="jar" depends="rmic">
<jar jarfile="${build.dir}/${app.name}.jar"
basedir="${classes.dir}" includes="*/**">
<manifest>
<attribute name="Main-Class" value="com.jamal.client.Jamal"/>
</manifest>
</jar>
<delete dir="${classes.dir}"/>
</target>
<target name="release" depends="jar">
<zip destfile="${build.dir}/jamal-${version}.zip">
<zipfileset dir="doc" includes="jamal_doc.pdf"/>
<zipfileset dir="." includes="build/jamal-${version}.jar" />
<zipfileset dir="." includes="lib/**" />
<zipfileset dir="." includes="src/**" />
<zipfileset dir="." includes="matlab/**" />
<zipfileset dir="." includes="build.properties" />
<zipfileset dir="." includes="LICENSE.txt" />
<zipfileset dir="." includes="build.xml" />
</zip>
</target>
</project>