forked from TreasureBoat/GBU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
51 lines (41 loc) · 1.79 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
<project name="TreasureBoat" default="dist" basedir=".">
<description>
TreasureBoat - the new thing.
</description>
<property name="src" location="Sources" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="fRJ" value="framework/Resources/Java" />
<property file="build.properties" />
<path id="class.path">
<fileset dir="${WO_FWKS}">
<include name="JavaFoundation.${fRJ}/javafoundation.jar" />
</fileset>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build}" />
<mkdir dir="${build}/JavaWebObjects" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="init">
<unjar src="${WO_FWKS}/JavaWebObjects.framework/Resources/Java/javawebobjects.jar" overwrite="false" dest="${build}/JavaWebObjects" />
<delete dir="${build}/JavaWebObjects/META-INF" />
<javac srcdir="Frameworks/JavaWebObjects/Sources" destdir="${build}/JavaWebObjects" includeantruntime="true" classpathref="class.path" />
</target>
<!-- was using: manifest="manifest.txt" on jar task -->
<target name="dist" depends="compile">
<mkdir dir="${dist}/JavaWebObjects.framework/Resources" />
<mkdir dir="${dist}/JavaWebObjects.framework/WebServerResources" />
<copy todir="${dist}/JavaWebObjects.framework/Resources">
<fileset dir="${WO_FWKS}/JavaWebObjects.framework/Resources">
<exclude name="**/*.jar" />
</fileset>
</copy>
<jar basedir="${build}/JavaWebObjects" destfile="${dist}/JavaWebObjects.${fRJ}/javawebobjects.jar" />
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>