-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
75 lines (69 loc) · 2.48 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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="worldwind_models" default="compile" basedir=".">
<description>
Build worldwind 3D model support
</description>
<!-- Load up World Wind Models build properties. All properties expected by ANT are defined in build.properties. -->
<property file="build/build.properties"/>
<fileset dir="${worldwind.dir}" id="extlibs">
<include name="*.jar"/>
</fileset>
<target name="compile"
description="Compile the Model Support source"
depends="clean">
<mkdir dir="${wwmodel.classes.dir}"/>
<javac destdir="${wwmodel.classes.dir}"
fork="true"
memoryMaximumSize="512m"
source="${worldwind.jdk.version}"
target="${worldwind.jdk.version}">
<src path="${wwmodel.src.dir}"/>
<src path="${wwmodel.test.dir}"/>
<classpath>
<fileset refid="extlibs"/>
<pathelement location="${java.home}/lib/plugin.jar"/>
</classpath>
</javac>
</target>
<target name="testloaders"
description="Run JUnit Tests on loaders"
depends="compile">
<mkdir dir="${wwmodel.testreports.dir}"/>
<junit haltonfailure="no">
<formatter type="plain"/>
<batchtest todir="${wwmodel.testreports.dir}">
<fileset dir="${wwmodel.classes.dir}">
<include name="**/loader/*Test.class"/>
</fileset>
</batchtest>
<classpath>
<pathelement location="${wwmodel.classes.dir}"/>
<fileset refid="extlibs"/>
<pathelement location="${java.home}/lib/plugin.jar"/>
</classpath>
</junit>
</target>
<target name="clean"
description="Get rid of tests and compiled classes">
<delete dir="${wwmodel.classes.dir}"/>
<delete dir="${wwmodel.testreports.dir}"/>
</target>
<!-- Builds the World Wind library Jar file. -->
<target name="wwmodel.jar" depends="compile"
description="Build the World Wind Full Screen Jar">
<jar jarfile="${wwmodel.lib.dir}/${wwmodel.jarfile}">
<manifest>
<attribute name="Class-Path" value="jogl.jar gluegen-rt.jar
gdal.jar ardor3d-collada-0.7.jar ardor3d-core-0.7.jar
ardor3d-jogl-0.7.jar ardor3d-awt-0.7.jar
jaxen.jar jdom.jar saxpath.jar ardor3d-animation-0.7.jar
guava-r07.jar worldwind.jar"/>
<attribute name="Main-Class" value="${fullscreen.classname}"/>
</manifest>
<fileset dir="${wwmodel.classes.dir}">
<exclude name="**/loader/*Test.class"/>
<type type="file"/>
</fileset>
</jar>
</target>
</project>