-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
92 lines (80 loc) · 4.45 KB
/
build.xml
File metadata and controls
92 lines (80 loc) · 4.45 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="JavaWOExtensions" default="build" basedir=".">
<description>
Builds a Basic WebObjects Framework
</description>
<!-- ==================================================== -->
<!-- Global properties -->
<!-- ==================================================== -->
<!--NOTE: a project can be made self-contained if the following properties are reconfigured -->
<property name="wo.path.installed.support_files_dir" location="/Library/Application Support/Apple/Developer Tools/WebObjects Support"/>
<property name="wo.build.modulefile" location="${wo.path.installed.support_files_dir}/framework-modules.xml"/>
<property name="wo.path.build.server_jarfile" value="javawoextensions" />
<!-- ==================================================== -->
<!-- Basic clean target -->
<!-- ==================================================== -->
<target name="clean" description="Cleans out temporary directories (dist, bin, build)">
<echo message="Start top level Clean task"/>
<ant antfile="${wo.build.modulefile}" target="clean"></ant>
<echo message="Finished top level Clean task"/>
</target>
<!-- ==================================================== -->
<!-- Global build all target -->
<!-- ==================================================== -->
<target name="build" description="Default build target that compiles and assembles all bundle types">
<echo message="Start top level Build task"/>
<ant antfile="${wo.build.modulefile}" target="all" inheritAll="true">
<property name="wo.create_legacy_bundle" value="true"/>
<property name="wo.create_jar_bundle" value="true"/>
<property name="wo.path.resources_server_dir" value="${basedir}/src/main/woresources"/>
<property name="wo.path.resources_webserver" value="${basedir}/src/main/webserverresources"/>
</ant>
<echo message="Finished top level Build task"/>
</target>
<!-- ==================================================== -->
<!-- Build self contained jar bundle -->
<!-- ==================================================== -->
<target name="jar" description="Assembles a self contained jar that includes Resources and WebServerResources">
<echo message="Build only self contained jar bundle"/>
<ant antfile="${wo.build.modulefile}" target="all" inheritAll="true">
<!-- override other build properties to force only war bundle -->
<property name="wo.create_legacy_bundle" value="false"/>
<property name="wo.create_jar_bundle" value="true"/>
</ant>
<echo message="Finished build only self contained jar bundle"/>
</target>
<!-- ==================================================== -->
<!-- Build legacy framework bundle only -->
<!-- ==================================================== -->
<target name="framework" description="Build a legacy .framework style bundle">
<echo message="Build only framework bundle"/>
<ant antfile="${wo.build.modulefile}" target="all" inheritAll="true">
<!-- override other build properties to force only framework bundle -->
<property name="wo.create_legacy_bundle" value="true"/>
<property name="wo.create_jar_bundle" value="false"/>
</ant>
<echo message="Finished build only framework bundle"/>
</target>
<!-- ==================================================== -->
<!-- Deploy framework bundles -->
<!-- ==================================================== -->
<target name="deployment" description="Analogous to the split install from the old Xcode build system. Where resources are copied is specified by the wo.path.webobjects_documentroot.">
<echo message="Start split install for deployment"/>
<ant antfile="${wo.build.modulefile}" target="split-install" inheritAll="true">
<!-- override other build properties to force only split install bundle -->
<property name="wo.create_legacy_bundle" value="true"/>
<property name="wo.create_jar_bundle" value="true"/>
</ant>
<echo message="Finished split install for deployment"/>
</target>
<!-- ==================================================== -->
<!-- Documentation target -->
<!-- Developers must configure this target -->
<!-- ==================================================== -->
<target name="javadoc" description="Default javadoc generation target">
<echo message="Start javadoc generation"/>
<mkdir dir="doc"/>
<javadoc sourcepath="src" destdir="doc"/>
<echo message="Finished javadoc generation"/>
</target>
</project>