-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
59 lines (51 loc) · 2.01 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
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Very simple ANT build.xml file for compiling and generating Aladin.jar file
* Author : P.Fernique [CDS]
* Date : Sep 2018
* Rev1 : Mar 2021
* Rev2 : Oct 2021
* Rev3 : Nov 2021
* Rev4 : Jul 2022
* Rev5 : May 2023
-->
<project name="Aladin" default="main" basedir=".">
<description>Aladin Sky Atlas</description>
<property name="src" value="${basedir}/src"/>
<property name="bin" value="${basedir}/bin"/>
<property name="lib" value="${basedir}/lib"/>
<target name="compil" description="source compilation" >
<mkdir dir="${bin}"/>
<javac srcdir="${basedir}" destdir="${bin}"
encoding="Cp1252" source="1.8" target="1.8" deprecation="off" includeantruntime="false" >
<src path="${src}"/>
<classpath>
<pathelement path="${java.class.path}/"/>
<pathelement path="${lib}/adql1.3.jar"/>
<pathelement path="${lib}/jsamp-1.3.7.jar"/>
<pathelement path="${lib}/kxml2-2.3.0.jar"/>
<pathelement path="${lib}/cdshealpix.0.28_1.jar"/>
<pathelement path="${lib}/Moc.jar"/>
</classpath>
</javac>
</target>
<target name="main" depends="compil" description="jar generation" >
<jar destfile="Aladin.jar" duplicate="preserve">
<fileset dir="${bin}"/>
<zipfileset src="${lib}/adql1.3.jar"/>
<zipfileset src="${lib}/jsamp-1.3.7.jar"/>
<zipfileset src="${lib}/kxml2-2.3.0.jar"/>
<zipfileset src="${lib}/cdshealpix.0.28_1.jar"/>
<zipfileset src="${lib}/Moc.jar"/>
<fileset dir="${src}" includes="*.gif,*.jpg,*.png,Ala*.*,Constellation.txt,viewConfiguration.properties,StandardForms.dic" excludes="Aladin.jar"/>
<manifest>
<attribute name="Main-Class" value="cds.aladin.Aladin" />
</manifest>
</jar>
</target>
<target name="clean" description="Remove building directory" >
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${bin}" />
</delete>
</target>
</project>