-
Notifications
You must be signed in to change notification settings - Fork 4
/
psu.xml
executable file
·257 lines (191 loc) · 7.73 KB
/
psu.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<project name="WDK temp build" default="package" basedir=".">
<!--<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"/>-->
<property name="build.home" value="${basedir}/ant-build"/>
<property name="src.home" value="/src/java"/>
<property name="srcController.home" value="${basedir}/Controller/src/java"/>
<property name="srcModel.home" value="${basedir}/Model/src/java"/>
<property name="srcView.home" value="${basedir}/View/src/java"/>
<property name="jar_resources_controller.home" value="${basedir}/Controller/lib/java"/>
<property name="jar_resources_model.home" value="${basedir}/Model/lib/java"/>
<property name="jar_resources_view.home" value="${basedir}/View/lib/java"/>
<property name="jar_resources.home" value="${basedir}/View/webinf"/>
<property name="compile.debug" value="true"/>
<property name="compile.deprecation" value="false"/>
<property name="compile.optimize" value="true"/>
<property name="webapp.dir" value="/nfs/team81/art/genedb/webapps/sampleWDK/" />
<path id="compile.classpath">
<!-- <pathelement location="${catalina.home}/common/classes"/> -->
<fileset dir="${basedir}/Controller/lib/java">
<include name="*.jar"/>
</fileset>
<fileset dir="${basedir}/Model/lib/java">
<include name="*.jar"/>
</fileset>
<fileset dir="${basedir}/View/lib/java">
<include name="*.jar"/>
</fileset>
</path>
<target name="deploy" depends="package"
description="Deploy to webapp directory">
<!-- Compile Java classes as necessary -->
<mkdir dir="${build.home}/webapp"/>
<mkdir dir="${build.home}/WEB-INF/"/>
<mkdir dir="${build.home}/WEB-INF/lib/"/>
<mkdir dir="${build.home}/webapp/WEB-INF/wdk-config" />
<!-- Copy application resources -->
<copy todir="${build.home}/webapp/WEB-INF">
<fileset dir="ToySite/webinf" />
</copy>
<copy todir="${build.home}/webapp/">
<fileset dir="ToySite/docroot" />
</copy>
<copy tofile="${build.home}/webapp/WEB-INF/wdk-config/macro.props"
file="ToyModel/config/toyModel.prop"/>
<copy tofile="${build.home}/webapp/WEB-INF/wdk-config/login.xml"
file="ToyModel/lib/xml/login.xml.d1pat"/>
<copy tofile="${build.home}/webapp/WEB-INF/wdk-config/model.xml"
file="ToyModel/lib/xml/toyModel.xml"/>
<copy todir="${build.home}/webapp/WEB-INF/classes">
<fileset dir="${build.home}/classes/"/>
</copy>
<!-- <copy todir="${build.home}/webapp/WEB-INF/lib">
<fileset dir="${basedir}/lib/java" />
</copy>
-->
<!-- <copy todir="${build.home}/webapp/WEB-INF/lib"
file="${build.home}/GUS-WebDevKit.jar"/> -->
<!-- <copy todir="${gus.home}/lib/xml">
<fileset dir="lib/xml" includes="*.xml" />
</copy> -->
<!-- <mkdir dir="${build.home}/webapp/WEB-INF/classes" />
<copy todir="${build.home}/webapp/WEB-INF/classes">
<fileset dir="${build.home}/classes" />
</copy> -->
<!-- <copy todir="${build.home}/webapp/WEB-INF/lib">
<fileset dir="${jar_resources_controller.home}" />
</copy> -->
<copy todir="${build.home}/webapp/WEB-INF/lib">
<fileset dir="${jar_resources_model.home}" />
</copy>
<copy todir="${build.home}/webapp/WEB-INF/lib">
<fileset dir="${jar_resources_view.home}"
includes="jstl.jar,
pager-taglib.jar,
standard.jar" />
</copy>
<copy todir="${build.home}/webapp/WEB-INF/wdk-config"
file="Model/lib/rng/wdkModel.rng" />
<mkdir dir="${webapp.dir}"/>
<copy todir="${webapp.dir}">
<fileset dir="${build.home}/webapp" />
</copy>
</target>
<target name="clean"
description="BROKEN Delete old build and dist directories">
<delete dir="${build.home}"/>
<delete dir="${dist.home}"/>
</target>
<target name="compile" depends="prepare"
description="Compile Java sources">
<mkdir dir="${build.home}/classes"/>
<javac srcdir="${srcModel.home}"
destdir="${build.home}/classes"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
</javac>
<!-- Compile Java classes as necessary -->
<mkdir dir="${build.home}/classes"/>
<javac srcdir="${srcController.home}"
destdir="${build.home}/classes"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
</javac>
<mkdir dir="${build.home}/classes"/>
<javac srcdir="${srcView.home}"
destdir="${build.home}/classes"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
</javac>
<!-- Copy application resources -->
<!--
<copy todir="${build.home}/classes">
<fileset dir="${jar_resources_controller.home}" />
</copy>
<copy todir="${build.home}/classes">
<fileset dir="${jar_resources_model.home}" />
</copy>
<copy todir="${build.home}/classes">
<fileset dir="${jar_resources_view.home}" />
</copy>
<copy todir="${build.home}/classes">
<fileset dir="${jar_resources.home}" />
</copy>
-->
<copy todir="${build.home}/classes/org/gusdb/wdk/model" file="${basedir}/Model/lib/rng/wdkModel.rng" />
</target>
<target name="package" depends="compile"
description="Create JAR file">
<copy todir="${build.home}/classes/META-INF">
<fileset dir="View/webinf/META-INF" />
</copy>
<!-- Create application JAR file -->
<jar jarfile="${build.home}/GUS-WebDevKit.jar"
basedir="${build.home}/classes/"/>
<!-- Copy additional files to ${dist.home} as necessary -->
</target>
<target name="javadoc" depends="compile"
description="Create Javadoc API documentation">
<mkdir dir="${build.home}/docs/api"/>
<javadoc sourcepath="${src.home}"
destdir="${build.home}/docs/api"
packagenames="*">
<classpath refid="compile.classpath"/>
</javadoc>
</target>
<target name="javadoc-pdf" depends="compile"
description="Create Javadoc PDF API documentation">
<mkdir dir="${build.home}/docs/api"/>
<javadoc sourcepath="${src.home}"
access="private"
packagenames="*">
<doclet name="com.aurigalogic.doclet.core.Doclet"
path="./lib/java/AurigaDoclet.jar">
<param name="-out" value="api.pdf" />
<param name="-format" value="pdf" />
</doclet>
<classpath refid="compile.classpath"/>
</javadoc>
</target>
<target name="prepare">
<!-- Create build directories as needed -->
<mkdir dir="${build.home}"/>
<mkdir dir="${build.home}/WEB-INF"/>
<mkdir dir="${build.home}/WEB-INF/classes"/>
<!-- Copy static content of this web application -->
<!--
<copy todir="${build.home}">
<fileset dir="${web.home}"/>
</copy>
-->
<!-- Copy external dependencies as required -->
<!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** -->
<mkdir dir="${build.home}/WEB-INF/lib"/>
<!--
<copy todir="${build.home}/WEB-INF/lib" file="${foo.jar}"/>
-->
<!-- Copy static files from external dependencies as needed -->
<!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** -->
</target>
<target name="validateCBIL">
<jing file="../WDKTestSite/lib/xml/sampleModelRNG.xml" rngfile="webinf/org.gusdb/wdk/wdkModel.rng" />
</target>
<target name="validatePSU">
<jing file="../WDKTestSite/lib/xml/PSUSampleModel.xml" rngfile="webinf/org.gusdb/wdk/wdkModel.rng" />
</target>
</project>