-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
97 lines (83 loc) · 3.24 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
<project name="IUPAC-FAIRSpec" default="main" basedir=".">
<!--
DocumentId $Id: build.xml 21793 2018-01-02 16:58:31Z hansonr $
-->
<!-- Contributions -->
<!-- <for list ...> construct needs ant-contrib.jar -->
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="tools/ant-contrib.jar" />
</classpath>
</taskdef>
<!-- compile options -->
<property name="debug" value="on" />
<property name="deprecation" value="off" />
<property name="optimization" value="off" />
<property name="lib.dir" value="lib" />
<property name="appjars.dir" value="build/appjars" />
<property name="classes.dir" value="build/classes" />
<!-- see below for unjar references -->
<property name="jmol.jar" value="JmolDataD.jar" />
<property name="jme.jar" value="JME-SwingJS.jar" />
<property name="commons-io.jar" value="commons-io-2.11.0.jar" />
<property name="commons-compress.jar" value="commons-compress-1.22.jar" />
<path id="project.class.path">
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<target name="libjars" id="libjars">
<mkdir dir="${appjars.dir}"/>
<delete includeemptydirs="true">
<fileset dir="${appjars.dir}" includes="**/*"/>
</delete>
<unjar dest="${appjars.dir}" src="${lib.dir}/${jme.jar}"/>
<unjar dest="${appjars.dir}" src="${lib.dir}/${jmol.jar}"/>
<unjar dest="${appjars.dir}" src="${lib.dir}/${commons-compress.jar}"/>
<unjar dest="${appjars.dir}" src="${lib.dir}/${commons-io.jar}"/>
</target>
<target id="classes" name="classes">
<mkdir dir="${classes.dir}"/>
<delete includeemptydirs="true">
<fileset dir="${classes.dir}" includes="**/*"/>
</delete>
<javac srcdir="src" destdir="${classes.dir}" encoding="UTF8"
debug="${debug}" deprecation="${deprecation}"
optimize="${optimization}" source="1.8" target="1.8">
<classpath refid="project.class.path" />
</javac>
<copy todir="${classes.dir}" >
<fileset dir="src/main/java">
<include name="**/license.txt" />
<include name="**/*.jpg" />
<include name="**/*.gif" />
<include name="**/*.png" />
<include name="**/*.html" />
<include name="**/*.htm" />
<include name="**/*.css" />
<include name="**/*.js" />
<include name="**/*.json" />
<include name="**/*.properties" />
<include name="**/*.txt" />
</fileset>
</copy>
</target>
<target name="jar" id="jar"
depends="classes,libjars">
<jar destfile="build/IFDExtractor.jar"
manifest="manifest/application.txt">
<fileset dir="${classes.dir}" >
<include name="**/*" />
</fileset>
<fileset dir="${appjars.dir}" includes="**/*"/>
</jar>
<echo>build/IFDExtractor.jar created (unsigned)</echo>
<copy file="build/IFDExtractor.jar" tofile="dist/IFDExtractor.jar" />
<delete includeemptydirs="true">
<!-- <fileset dir="${classes.dir}" includes="**/*"/>
-->
<fileset dir="${appjars.dir}" includes="**/*"/>
</delete>
</target>
<target name="main" id="main" depends="jar"/>
</project>