-
Notifications
You must be signed in to change notification settings - Fork 46
/
jarbuild.xml
43 lines (40 loc) · 1.48 KB
/
jarbuild.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
<project name="wfdb" basedir="." default="jar7">
<property name="src.dir" value="src"/>
<property name="build.dir" value="bin"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="mcode"/>
<property name="jar7name" value="wfdb-app-JVM7-0-10-0.jar"/>
<property name="jar8name" value="wfdb-app-JVM8-0-10-0.jar"/>
<target name="compile7">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"
includeantruntime="yes" target="1.7"
source="1.7" />
</target>
<target name="compile8">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"
includeantruntime="yes" target="1.8"
source="1.8" />
</target>
<target name="jar7" depends="compile7">
<delete file="${jar.dir}/${jar7name}"/>
<jar destfile="${jar.dir}/${jar7name}" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="org.physionet.wfdb.Wfdbexec"/>
</manifest>
</jar>
</target>
<target name="jar8" depends="compile8">
<delete file="${jar.dir}/${jar8name}"/>
<jar destfile="${jar.dir}/${jar8name}" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="org.physionet.wfdb.Wfdbexec"/>
</manifest>
</jar>
</target>
</project>