-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
70 lines (65 loc) · 3.94 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="Map Projections" default="cleanup">
<property name="dir.jtem" value="C:\Program Files\Java\JTEM"/>
<property name="dir.commons" value="C:\Program Files\Java\commons-math3-3.6.1"/>
<property name="dir.jre" value="C:\Program Files\Java\jre-1.8"/>
<property name="dir.jarfile" value="."/>
<property name="version" value="3.7.1"/>
<property name="year" value="2024"/>
<target name="setup">
<mkdir dir="build"/>
</target>
<target name="build" depends="setup">
<jar destfile="${dir.jarfile}/MapDesignerRaster.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="apps.MapDesignerRaster"/>
</manifest>
<fileset dir="bin"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jtem}/ellipticFunctions.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jtem}/mfc.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.commons}/commons-math3-3.6.1.jar"/>
</jar>
<jar destfile="${dir.jarfile}/MapDesignerVector.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="apps.MapDesignerVector"/>
</manifest>
<fileset dir="bin"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jtem}/ellipticFunctions.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jtem}/mfc.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.commons}/commons-math3-3.6.1.jar"/>
</jar>
<jar destfile="${dir.jarfile}/MapAnalyzer.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="apps.MapAnalyzer"/>
</manifest>
<fileset dir="bin"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jtem}/ellipticFunctions.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jtem}/mfc.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.commons}/commons-math3-3.6.1.jar"/>
</jar>
</target>
<target name="deploy" depends="build">
<exec executable="javapackager">
<arg line="-deploy -native exe -srcdir ${dir.jarfile} -srcfiles MapDesignerRaster.jar;LICENSE.md;res;input -appclass apps.MapDesignerRaster -outdir build -outfile MapDesignerRaster"/>
<arg line="-name "Map Designer Raster" -title "Map Designer (Raster)" -description "Design oblique raster world maps in different projections""/>
<arg line="-vendor "Justin Kunimune" -Bcopyright="Copyright (c) ${year} Justin Kunimune""/>
<arg line="-BappVersion=${version} -Bicon=res\raster.ico -BlicenseFile=LICENSE.md -Bruntime="${dir.jre}" -BjvmOptions=-Xmx8g"/>
</exec>
<exec executable="javapackager">
<arg line="-deploy -native exe -srcdir ${dir.jarfile} -srcfiles MapDesignerVector.jar;LICENSE.md;res;input -appclass apps.MapDesignerVector -outdir build -outfile MapDesignerVector"/>
<arg line="-name "Map Designer Vector" -title "Map Designer (Vector)" -description "Design oblique vector world maps in different projections""/>
<arg line="-vendor "Justin Kunimune" -Bcopyright="Copyright (c) ${year} Justin Kunimune""/>
<arg line="-BappVersion=${version} -Bicon=res\vector.ico -BlicenseFile=LICENSE.md -Bruntime="${dir.jre}""/>
</exec>
<exec executable="javapackager">
<arg line="-deploy -native exe -srcdir ${dir.jarfile} -srcfiles MapAnalyzer.jar;LICENSE.md;res -appclass apps.MapAnalyzer -outdir build -outfile MapAnalyzer"/>
<arg line="-name "Map Analyzer" -title "Map Analyzer" -description "Compare distortion graphs and metrics for different map projections.""/>
<arg line="-vendor "Justin Kunimune" -Bcopyright="Copyright (c) ${year} Justin Kunimune""/>
<arg line="-BappVersion=${version} -Bicon=res\analyz.ico -BlicenseFile=LICENSE.md -Bruntime="${dir.jre}""/>
</exec>
</target>
<target name="cleanup" depends="deploy">
<move file="build/bundles" tofile="executables"/>
<delete dir="build"/>
</target>
</project>