-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
60 lines (46 loc) · 1.5 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
<?xml version="1.0"?>
<project name="MZmine" default="jar" basedir=".">
<property name="src" value="src"/>
<property name="lib" value="lib"/>
<property name="rest" value="rest"/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<path id="classpath.alllibs">
<pathelement location="${lib}/base64.jar"/>
<pathelement location="${lib}/danby.jar"/>
<pathelement location="${lib}/jmprojection.jar"/>
<pathelement location="${lib}/netcdf.jar"/>
<pathelement location="${lib}/sunutils.jar"/>
</path>
<target name="compile">
<mkdir dir="${build}"/>
<javac srcdir="${src}" destdir="${build}" debug="on">
<classpath refid="classpath.alllibs"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/lib"/>
<copy todir="${dist}">
<fileset file="${rest}/mzmineclient.ini"/>
<fileset file="${rest}/mzminecontroller.ini"/>
<fileset file="${rest}/mzminenode.ini"/>
<fileset file="${rest}/startMZmine.bat"/>
</copy>
<copy todir="${dist}/lib">
<fileset file="${lib}/base64.jar"/>
<fileset file="${lib}/danby.jar"/>
<fileset file="${lib}/jmprojection.jar"/>
<fileset file="${lib}/netcdf.jar"/>
<fileset file="${lib}/sunutils.jar"/>
</copy>
<jar destfile="${dist}/MZmine.jar" manifest="${rest}/mzminemanifest">
<fileset dir="${build}" />
<fileset dir="${lib}"/>
</jar>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>