-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
147 lines (129 loc) · 7.73 KB
/
build.xml
File metadata and controls
147 lines (129 loc) · 7.73 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
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
138
139
140
141
142
143
144
<?xml version="1.0" encoding="UTF-8"?>
<project name="PetStoreWOJava" default="build" basedir=".">
<description>
Builds a WebObjects Application
</description>
<!-- ==================================================== -->
<!-- Global properties -->
<!-- ==================================================== -->
<target name="init">
<xmlproperty file="build-properties.xml" collapseAttributes="true" keepRoot="false"/>
<!--NOTE: a project can be made self-contained if the following properties are reconfigured -->
<!--WARNING: the wo.path.installed.support_files_dir must be set either here or in the build properties file -->
<property name="wo.build.modulefile" location="${wo.path.installed.support_files_dir}/app-modules.xml"/>
<property name="wo.path.wobootstrap_file" location="${wo.path.installed.support_files_dir}/WOBootstrap.jar"/>
<property name="wo.path.unixlaunchscript" location="${wo.path.installed.support_files_dir}/UnixLaunch.sh"/>
<property name="wo.path.windowslaunchscript" location="${wo.path.installed.support_files_dir}/WinLaunch.CMD"/>
<property name="wo.path.j2ee.license_file" location="${wo.path.installed.support_files_dir}/LICENSE.pdf"/>
<property name="wo.path.j2ee.jboss_webxml_file" location="${wo.path.installed.support_files_dir}/jboss-web.xml"/>
<property name="wo.path.j2ee.servletweb_xml_file" location="${wo.path.installed.support_files_dir}/ServletEnv_web.xml"/>
<property name="wo.path.j2ee.wo_taglib_file" location="${wo.path.systemroot}/Library/Frameworks/JavaWOJSPServlet.framework/Resources/WOtaglib_1_0.tld"/>
<property name="wo.j2ee.taglib" value="WOtaglib_1_0.tld" />
<property name="wo.path.client_wsdd_file" location="${wo.path.systemroot}/Library/Frameworks/JavaWebServicesClient.framework/Resources/template_client.wsdd"/>
<property name="wo.path.server_wsdd_file" location="${wo.path.systemroot}/Library/Frameworks/JavaWebObjects.framework/Resources/template_server.wsdd"/>
<property name="wo.path.local.pbdevelopment_file" location="${wo.path.installed.support_files_dir}/pbdevelopment"/>
</target>
<!-- ==================================================== -->
<!-- Basic clean target -->
<!-- ==================================================== -->
<target name="clean" depends="init" 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" depends="init" 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"></ant>
<!-- bogus javac target so this will be importable in Eclipse -->
<!-- NOTE: you'll have to configure the Eclipse project files -->
<javac srcdir="bin" destdir="bin">
<classpath>
<pathelement path="${java.class.path}"/>
</classpath>
</javac>
<echo message="Finished top level Build task"/>
</target>
<!-- ==================================================== -->
<!-- Build war bundle only -->
<!-- ==================================================== -->
<target name="war" depends="init" description="Create a J2EE style bundle with an embedded WO application.">
<echo message="Build only war bundle"/>
<ant antfile="${wo.build.modulefile}" target="all" inheritAll="true">
<property name="wo.create_legacy_bundle" value="false"/>
<property name="wo.create_selfcontained_bundle" value="false"/>
<property name="wo.create_war_bundle" value="true"/>
</ant>
<echo message="Finished build only war bundle"/>
</target>
<!-- ==================================================== -->
<!-- Build legacy woa bundle only -->
<!-- ==================================================== -->
<target name="woa" depends="init" description="Create a traditional WebObjects .woa bundle.">
<echo message="Build only legacy woa bundle"/>
<ant antfile="${wo.build.modulefile}" target="all" inheritAll="true">
<property name="wo.create_legacy_bundle" value="true"/>
<property name="wo.create_selfcontained_bundle" value="false"/>
<property name="wo.create_war_bundle" value="false"/>
</ant>
<echo message="Finished build legacy woa bundle"/>
</target>
<!-- ==================================================== -->
<!-- Build self-contained woa bundle only -->
<!-- ==================================================== -->
<target name="self-contained-woa" depends="init" description="Build a self-contained .woa bundle that embeds all dependent .jars and resources within the bundle.">
<echo message="Build only self contained woa bundle"/>
<ant antfile="${wo.build.modulefile}" target="all" inheritAll="true">
<property name="wo.create_legacy_bundle" value="false"/>
<property name="wo.create_selfcontained_bundle" value="true"/>
<property name="wo.create_war_bundle" value="false"/>
</ant>
<echo message="Finished build only self contained woa bundle"/>
</target>
<!-- ==================================================== -->
<!-- Deploy application bundles -->
<!-- ==================================================== -->
<target name="deployment" depends="init" description="Analogous to the split install from the old Xcode build system. Where resources are copied is specified by the wo.path.webobjects_applicationroot and wo.path.webobjects_documentroot.">
<echo message="Start split install for deployment"/>
<ant antfile="${wo.build.modulefile}" target="split-install" inheritAll="true">
<property name="wo.create_legacy_bundle" value="true"/>
<property name="wo.create_selfcontained_bundle" value="false"/>
<property name="wo.create_war_bundle" value="false"/>
</ant>
<echo message="Finished split install for deployment"/>
</target>
<target name="servlet-deployment" description="Deploy war bundle in the location specified by the j2ee.servlet_deploy_dir property">
<ant antfile="${wo.build.modulefile}" target="servlet-deploy" inheritAll="true">
<property name="wo.create_legacy_bundle" value="false"/>
<property name="wo.create_selfcontained_bundle" value="false"/>
<property name="wo.create_war_bundle" value="true"/>
</ant>
</target>
<!-- ==================================================== -->
<!-- Global run target -->
<!-- Configure the bundle to launch with property -->
<!-- wo.run.launchscript -->
<!-- Valid values are: legacy or selfcontained -->
<!-- ==================================================== -->
<target name="run" depends="init" description="By default this target will make sure the bundles are compiled and the legacy woa bundle is launched.">
<echo message="Start run target"/>
<ant antfile="${wo.build.modulefile}" target="run-app" inheritAll="true">
<property name="wo.create_legacy_bundle" value="true"/>
<property name="wo.create_selfcontained_bundle" value="true"/>
<property name="wo.create_war_bundle" value="false"/>
</ant>
<echo message="Finished run target"/>
</target>
<!-- ==================================================== -->
<!-- Documentation target -->
<!-- Developers must configure this target -->
<!-- ==================================================== -->
<target name="javadoc" depends="init" description="Default target for javadoc generation.">
<echo message="Start javadoc generation"/>
<mkdir dir="doc"/>
<javadoc sourcepath="src" destdir="doc"/>
<echo message="Finished javadoc generation"/>
</target>
</project>