-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
138 lines (129 loc) · 4.81 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<project name="SailAway" default="install" basedir=".">
<target name="init" description="Initialize all properties">
<property name="appName" value="SailAway" />
<property name="coName" value="Interworld Transport" />
<property name="appHome" value="http://www.interworldtransport.com" />
<property name="copyleft" value="<p>
--------------------------------------------------------------------------------
<br>
SailAway_API_Documentation<br>
--------------------------------------------------------------------------------
<br>
Copyright (c) 2002 Interworld Transport. All rights reserved.
<p>
Interworld Transport grants you (Licensee) a license to this documentation
under the terms of the Design Science License. A full copy of the license can
be found bundled with this documentation and published within it.
<p>
Use of this documentation beyond the legal definition of 'fair use' by the
Licensee states their willingness to accept the terms of the license.
<p>
A prospective Licensee unable to find a copy of the license terms should contact
Interworld Transport for a free copy." />
<path id="classpath">
<pathelement path="./class" />
</path>
</target>
<target name="clean"
depends="init"
description="Removes all SailAway files down to a basic src package.">
<delete file="SailAway.jar" /> <!-- made by jar target -->
<delete file="lib/SailAway_API_Docs.jar" /> <!-- made by jar target -->
<delete dir="test" /> <!-- made by test target -->
<delete dir="class" /> <!-- made by compile target -->
<delete dir="docs/api" /> <!-- made by javadoc target -->
</target>
<target name="compile"
depends="init"
description="Compiles all the SailAway source files" >
<mkdir dir="class" />
<javac classpath="lib/clados.jar"
debug="off"
destdir="class"
nowarn="on"
srcdir="."
verbose="false">
<include name="com/interworldtransport/sailmodel/*.java"></include>
<include name="com/interworldtransport/sailgui/*.java"></include>
<include name="com/interworldtransport/sailli/*.java"></include>
<include name="com/interworldtransport/sailnti/*.java"></include>
<include name="com/interworldtransport/sailevent/*.java"></include>
<exclude name="com/interworldtransport/sailmodel/Orbit.java"></exclude>
<exclude name="com/interworldtransport/sailgui/Geometry.java"></exclude>
<exclude name="com/interworldtransport/sailgui/ErrorMessage.java"></exclude>
</javac>
</target>
<target name="javadoc" depends="init"
description="Generates the API documentation for SailAway." >
<delete dir="./docs/api" />
<mkdir dir="./docs/api" />
<javadoc classpath="lib/clados.jar"
author="true"
bottom="${copyleft}"
destdir="./docs/api"
doctitle="SailAway Package Documentation"
header="<a target=_top href=${appHome}>${coName}</a>"
overview="com/interworldtransport/overview.html"
packagenames="com.interworldtransport.*"
sourcepath="."
verbose="false"
windowtitle="SailAway API Documentation">
</javadoc>
</target>
<target name="jar"
depends="compile"
description="Package the source code and support docs for install." >
<mkdir dir="class/configuration"></mkdir>
<mkdir dir="class/images"></mkdir>
<copydir dest="class/configuration" src="configuration" />
<copydir dest="class/images" src="images" />
<jar
jarfile="./SailAway.jar"
manifest="./com/interworldtransport/sailgui/SailAway.manifest"
>
<fileset dir="./class">
<include name="com/interworldtransport/**/*.class"/>
<include name="images/*.gif"/>
<include name="images/*.jpg"/>
<include name="configuration/*.*"/>
</fileset>
</jar>
</target>
<target name="jar_API_docs"
depends="javadoc"
description="Package the source code and support docs for install." >
<jar
jarfile="./lib/SailAway_API_Docs.jar"
>
<fileset dir=".">
<include name="docs/api/**/*.*"/>
</fileset>
</jar>
</target>
<target name="install"
depends="jar, jar_API_docs"
description="This one is not ready yet.." >
</target>
<target name="test"
description="This one is temporary. It helps test what makes it into the jar files." >
<mkdir dir="test" />
<copy file="SailAway.jar" todir="test" />
</target>
<target name="run"
depends="compile"
description="This target allows developers to run the class code">
<java classname="com.interworldtransport.sailgui.SailAway"
classpath="./class">
</java>
</target>
<target name="run_jar"
depends="install"
description="This target allows developers to run the application">
<java classpath="./lib/SailAway.jar"
jar="SailAway.jar">
</java>
</target>
<target name="uninstall" description="This one is not ready yet." >
</target>
</project>