-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
71 lines (66 loc) · 3.03 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
<?xml version="1.0"?>
<project name="SOFIAladin" default="main" basedir=".">
<description>Aladin Sky Atlas extended for SOFIA observation preparation</description>
<property name="src.dir" location="src" />
<property name="build.dir" location="bin" />
<property name="dist.dir" location="dist" />
<property name="dist.file" value="SOFIAladin.jar" />
<!-- Delete the existing build and distribution directories -->
<target name="clean">
<delete dir="${dist.dir}" />
<delete dir="${build.dir}" />
</target>
<!-- Compile the source files -->
<target name="compile">
<echo message="Source file directory: ${src.dir}" />
<mkdir dir="${build.dir}" />
<javac srcdir="${src.dir}" destdir="${build.dir}" encoding="Cp1252"
source="1.8" target="1.8" deprecation="off" includeantruntime="false">
<!-- Output deprecation info during compilation -->
<!-- <compilerarg value="-Xlint"/> -->
<classpath>
<pathelement path="${src.dir}/jsamp.jar" />
<pathelement path="${src.dir}/microhub.jar" />
<pathelement path="${src.dir}/Moc.jar" />
<pathelement path="${src.dir}/jhealpixSmall.jar" />
<pathelement path="${src.dir}/kxml2-2.3.0.jar" />
<pathelement path="${src.dir}/cds.astro.jar" />
<pathelement path="${src.dir}/cds.savot.common.jar" />
<pathelement path="${src.dir}/cds.savot.model.jar" />
<pathelement path="${src.dir}/cds.savot.pull.jar" />
<pathelement path="${src.dir}/cds.savot.sax.jar" />
<pathelement path="${src.dir}/cds.savot.writer.jar" />
<pathelement path="${src.dir}/kxml2-2.3.0.jar" />
<pathelement path="${src.dir}/jsoup-1.7.3.jar" />
</classpath>
</javac>
</target>
<!-- Compile and create an executable jar file -->
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}" />
<jar destfile="${dist.dir}/${dist.file}" basedir="${build.dir}">
<zipfileset src="${src.dir}/jsamp.jar" />
<zipfileset src="${src.dir}/microhub.jar" />
<zipfileset src="${src.dir}/Moc.jar" />
<zipfileset src="${src.dir}/jhealpixSmall.jar" />
<zipfileset src="${src.dir}/kxml2-2.3.0.jar" />
<zipfileset src="${src.dir}/cds.astro.jar" />
<zipfileset src="${src.dir}/cds.savot.common.jar" />
<zipfileset src="${src.dir}/cds.savot.model.jar" />
<zipfileset src="${src.dir}/cds.savot.pull.jar" />
<zipfileset src="${src.dir}/cds.savot.sax.jar" />
<zipfileset src="${src.dir}/cds.savot.writer.jar" />
<zipfileset src="${src.dir}/kxml2-2.3.0.jar" />
<zipfileset src="${src.dir}/jsoup-1.7.3.jar" />
<fileset dir="${src.dir}" includes="*.css,*.js,*.html,*.gif,*.jpg, Ala*.*"
excludes="**/*.java, AladinSrc*.jar, .DS_Store" />
<manifest>
<attribute name="Main-Class" value="cds.aladin.SOFIAladin" />
</manifest>
</jar>
</target>
<!-- Clean, compile, and create an executable jar file -->
<target name="main" depends="clean, compile, jar">
<description>Build All</description>
</target>
</project>