source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/ConsumerPreferencesProfileGUI/nbproject/build-impl.xml@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 50.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
5
6 For the purpose of easier reading the script
7 is divided into following sections:
8 - initialization
9 - compilation
10 - dist
11 - execution
12 - debugging
13 - javadoc
14 - junit compilation
15 - junit execution
16 - junit debugging
17 - cleanup
18
19 -->
20<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="ConsumerPreferencesProfileGUI-impl">
21 <import file="jaxws-build.xml"/>
22 <import file="ant-deploy.xml"/>
23 <target depends="dist,javadoc" description="Build whole project." name="default"/>
24 <!--
25 INITIALIZATION SECTION
26 -->
27 <target name="-pre-init">
28 <!-- Empty placeholder for easier customization. -->
29 <!-- You can override this target in the ../build.xml file. -->
30 </target>
31 <target depends="-pre-init" name="-init-private">
32 <property file="nbproject/private/private.properties"/>
33 </target>
34 <target depends="-pre-init,-init-private" name="-init-user">
35 <property file="${user.properties.file}"/>
36 <!-- The two properties below are usually overridden -->
37 <!-- by the active platform. Just a fallback. -->
38 <property name="default.javac.source" value="1.4"/>
39 <property name="default.javac.target" value="1.4"/>
40 </target>
41 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
42 <property file="nbproject/project.properties"/>
43 </target>
44 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
45 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
46 <condition property="have.tests">
47 <or>
48 <available file="${test.src.dir}"/>
49 </or>
50 </condition>
51 <condition property="have.sources">
52 <or>
53 <available file="${src.dir}"/>
54 </or>
55 </condition>
56 <condition property="netbeans.home+have.tests">
57 <and>
58 <isset property="netbeans.home"/>
59 <isset property="have.tests"/>
60 </and>
61 </condition>
62 <condition property="no.javadoc.preview">
63 <isfalse value="${javadoc.preview}"/>
64 </condition>
65 <property name="javac.compilerargs" value=""/>
66 <condition property="no.deps">
67 <and>
68 <istrue value="${no.dependencies}"/>
69 </and>
70 </condition>
71 <condition property="no.dist.ear.dir">
72 <not>
73 <isset property="dist.ear.dir"/>
74 </not>
75 </condition>
76 <property name="build.web.excludes" value="${build.classes.excludes}"/>
77 <condition property="do.compile.jsps">
78 <istrue value="${compile.jsps}"/>
79 </condition>
80 <condition property="enable.jsdebugger">
81 <and>
82 <isset property="debug.client.available"/>
83 <istrue value="${debug.client.available}"/>
84 </and>
85 </condition>
86 <condition property="do.debug.server">
87 <or>
88 <not>
89 <isset property="debug.server"/>
90 </not>
91 <istrue value="${debug.server}"/>
92 <not>
93 <isset property="enable.jsdebugger"/>
94 </not>
95 <and>
96 <not>
97 <istrue value="${debug.server}"/>
98 </not>
99 <not>
100 <istrue value="${debug.client}"/>
101 </not>
102 </and>
103 </or>
104 </condition>
105 <condition property="do.debug.client">
106 <and>
107 <istrue value="${debug.client}"/>
108 <isset property="enable.jsdebugger"/>
109 </and>
110 </condition>
111 <condition property="do.display.browser">
112 <istrue value="${display.browser}"/>
113 </condition>
114 <condition property="do.display.browser.debug">
115 <and>
116 <isset property="do.display.browser"/>
117 <not>
118 <isset property="do.debug.client"/>
119 </not>
120 </and>
121 </condition>
122 <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
123 <available file="${conf.dir}/persistence.xml" property="has.persistence.xml"/>
124 <condition property="do.war.package.with.custom.manifest">
125 <isset property="has.custom.manifest"/>
126 </condition>
127 <condition property="do.war.package.without.custom.manifest">
128 <not>
129 <isset property="has.custom.manifest"/>
130 </not>
131 </condition>
132 <condition property="do.tmp.war.package.with.custom.manifest">
133 <and>
134 <isset property="has.custom.manifest"/>
135 <isfalse value="${directory.deployment.supported}"/>
136 </and>
137 </condition>
138 <condition property="do.tmp.war.package.without.custom.manifest">
139 <and>
140 <not>
141 <isset property="has.custom.manifest"/>
142 </not>
143 <isfalse value="${directory.deployment.supported}"/>
144 </and>
145 </condition>
146 <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
147 <condition else="" property="application.args.param" value="${application.args}">
148 <and>
149 <isset property="application.args"/>
150 <not>
151 <equals arg1="${application.args}" arg2="" trim="true"/>
152 </not>
153 </and>
154 </condition>
155 <property name="source.encoding" value="${file.encoding}"/>
156 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
157 <and>
158 <isset property="javadoc.encoding"/>
159 <not>
160 <equals arg1="${javadoc.encoding}" arg2=""/>
161 </not>
162 </and>
163 </condition>
164 <property name="javadoc.encoding.used" value="${source.encoding}"/>
165 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
166 <and>
167 <isset property="jaxws.endorsed.dir"/>
168 <available file="nbproject/jaxws-build.xml"/>
169 </and>
170 </condition>
171 </target>
172 <target name="-post-init">
173 <!-- Empty placeholder for easier customization. -->
174 <!-- You can override this target in the ../build.xml file. -->
175 </target>
176 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
177 <fail unless="src.dir">Must set src.dir</fail>
178 <fail unless="test.src.dir">Must set test.src.dir</fail>
179 <fail unless="build.dir">Must set build.dir</fail>
180 <fail unless="build.web.dir">Must set build.web.dir</fail>
181 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
182 <fail unless="dist.dir">Must set dist.dir</fail>
183 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
184 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
185 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
186 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
187 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
188 <fail unless="dist.war">Must set dist.war</fail>
189 <fail unless="j2ee.platform.classpath">
190The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
191Either open the project in the IDE and assign the server or setup the server classpath manually.
192For example like this:
193 ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
194or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
195 </fail>
196 </target>
197 <target name="-init-macrodef-property">
198 <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
199 <attribute name="name"/>
200 <attribute name="value"/>
201 <sequential>
202 <property name="@{name}" value="${@{value}}"/>
203 </sequential>
204 </macrodef>
205 </target>
206 <target name="-init-macrodef-javac">
207 <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
208 <attribute default="${src.dir}" name="srcdir"/>
209 <attribute default="${build.classes.dir}" name="destdir"/>
210 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
211 <attribute default="${javac.debug}" name="debug"/>
212 <element name="customize" optional="true"/>
213 <sequential>
214 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" includeantruntime="false" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
215 <classpath>
216 <path path="@{classpath}"/>
217 </classpath>
218 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
219 <customize/>
220 </javac>
221 </sequential>
222 </macrodef>
223 </target>
224 <target name="-init-macrodef-junit">
225 <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
226 <attribute default="**/*Test.java" name="includes"/>
227 <sequential>
228 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
229 <batchtest todir="${build.test.results.dir}">
230 <fileset dir="${test.src.dir}" includes="@{includes}"/>
231 </batchtest>
232 <classpath>
233 <path path="${run.test.classpath}:${j2ee.platform.classpath}"/>
234 </classpath>
235 <syspropertyset>
236 <propertyref prefix="test-sys-prop."/>
237 <mapper from="test-sys-prop.*" to="*" type="glob"/>
238 </syspropertyset>
239 <formatter type="brief" usefile="false"/>
240 <formatter type="xml"/>
241 </junit>
242 </sequential>
243 </macrodef>
244 </target>
245 <target name="-init-macrodef-java">
246 <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
247 <attribute default="${main.class}" name="classname"/>
248 <element name="customize" optional="true"/>
249 <sequential>
250 <java classname="@{classname}" fork="true">
251 <jvmarg line="${runmain.jvmargs}"/>
252 <classpath>
253 <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
254 </classpath>
255 <syspropertyset>
256 <propertyref prefix="run-sys-prop."/>
257 <mapper from="run-sys-prop.*" to="*" type="glob"/>
258 </syspropertyset>
259 <customize/>
260 </java>
261 </sequential>
262 </macrodef>
263 </target>
264 <target if="enable.jsdebugger" name="-init-macrodef-nbjsdebug">
265 <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
266 <attribute default="${client.url}" name="webUrl"/>
267 <sequential>
268 <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
269 </sequential>
270 </macrodef>
271 </target>
272 <target name="-init-macrodef-nbjpda">
273 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
274 <attribute default="${main.class}" name="name"/>
275 <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
276 <sequential>
277 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="dt_socket">
278 <classpath>
279 <path path="@{classpath}"/>
280 </classpath>
281 </nbjpdastart>
282 </sequential>
283 </macrodef>
284 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
285 <attribute default="${build.classes.dir}" name="dir"/>
286 <sequential>
287 <nbjpdareload>
288 <fileset dir="@{dir}" includes="${fix.classes}">
289 <include name="${fix.includes}*.class"/>
290 </fileset>
291 </nbjpdareload>
292 </sequential>
293 </macrodef>
294 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
295 <sequential>
296 <nbjpdaappreloaded/>
297 </sequential>
298 </macrodef>
299 </target>
300 <target name="-init-debug-args">
301 <property name="version-output" value="java version &quot;${ant.java.version}"/>
302 <condition property="have-jdk-older-than-1.4">
303 <or>
304 <contains string="${version-output}" substring="java version &quot;1.0"/>
305 <contains string="${version-output}" substring="java version &quot;1.1"/>
306 <contains string="${version-output}" substring="java version &quot;1.2"/>
307 <contains string="${version-output}" substring="java version &quot;1.3"/>
308 </or>
309 </condition>
310 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
311 <istrue value="${have-jdk-older-than-1.4}"/>
312 </condition>
313 </target>
314 <target depends="-init-debug-args" name="-init-macrodef-debug">
315 <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
316 <attribute default="${main.class}" name="classname"/>
317 <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
318 <attribute default="${application.args.param}" name="args"/>
319 <element name="customize" optional="true"/>
320 <sequential>
321 <java classname="@{classname}" fork="true">
322 <jvmarg line="${debug-args-line}"/>
323 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
324 <jvmarg line="${runmain.jvmargs}"/>
325 <classpath>
326 <path path="@{classpath}"/>
327 </classpath>
328 <syspropertyset>
329 <propertyref prefix="run-sys-prop."/>
330 <mapper from="run-sys-prop.*" to="*" type="glob"/>
331 </syspropertyset>
332 <arg line="@{args}"/>
333 <customize/>
334 </java>
335 </sequential>
336 </macrodef>
337 </target>
338 <target name="-init-macrodef-copy-ear-war">
339 <macrodef name="copy-ear-war">
340 <attribute name="file"/>
341 <attribute name="propname"/>
342 <sequential>
343 <basename file="@{file}" property="base_@{propname}"/>
344 <zipfileset id="tld.files_@{propname}" includes="META-INF/*.tld META-INF/tlds/*.tld" src="@{file}"/>
345 <pathconvert property="tld.files.path_@{propname}" refid="tld.files_@{propname}"/>
346 <condition property="hastlds_@{propname}" value="yes">
347 <contains casesensitive="false" string="${tld.files.path_@{propname}}" substring=".tld"/>
348 </condition>
349 <condition property="copy.to.dir_@{propname}" value="${build.web.dir}/WEB-INF/lib">
350 <isset property="hastlds_@{propname}"/>
351 </condition>
352 <condition property="copy.to.dir_@{propname}" value="${dist.ear.dir}">
353 <not>
354 <isset property="hastlds_@{propname}"/>
355 </not>
356 </condition>
357 <copy file="@{file}" todir="${copy.to.dir_@{propname}}"/>
358 <condition property="@{propname}" value="${base_@{propname}}">
359 <not>
360 <isset property="hastlds_@{propname}"/>
361 </not>
362 </condition>
363 <condition property="@{propname}" value="">
364 <isset property="hastlds_@{propname}"/>
365 </condition>
366 </sequential>
367 </macrodef>
368 </target>
369 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-macrodef-copy-ear-war" name="init"/>
370 <!--
371 COMPILATION SECTION
372 -->
373 <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
374 <ant antfile="${project.DocumentRepository}/build.xml" inheritall="false" target="jar"/>
375 <ant antfile="${project.MpiLib}/build.xml" inheritall="false" target="jar"/>
376 <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="jar"/>
377 </target>
378 <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
379 <ant antfile="${project.DocumentRepository}/build.xml" inheritall="false" target="jar"/>
380 <ant antfile="${project.MpiLib}/build.xml" inheritall="false" target="jar"/>
381 <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="jar"/>
382 </target>
383 <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
384 <target depends="init,deps-jar,wsimport-client-generate" name="-pre-pre-compile">
385 <mkdir dir="${build.classes.dir}"/>
386 </target>
387 <target name="-pre-compile">
388 <!-- Empty placeholder for easier customization. -->
389 <!-- You can override this target in the ../build.xml file. -->
390 </target>
391 <target name="-copy-webdir">
392 <copy todir="${build.web.dir}">
393 <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes}"/>
394 </copy>
395 <copy todir="${build.web.dir}/WEB-INF">
396 <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
397 </copy>
398 </target>
399 <target depends="wsimport-client-compile" name="-do-ws-compile"/>
400 <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest,-do-ws-compile" if="have.sources" name="-do-compile">
401 <webproject2:javac destdir="${build.classes.dir}"/>
402 <copy todir="${build.classes.dir}">
403 <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
404 </copy>
405 </target>
406 <target if="has.custom.manifest" name="-copy-manifest">
407 <mkdir dir="${build.meta.inf.dir}"/>
408 <copy todir="${build.meta.inf.dir}">
409 <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
410 </copy>
411 </target>
412 <target if="has.persistence.xml" name="-copy-persistence-xml">
413 <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
414 <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
415 <fileset dir="${conf.dir}" includes="persistence.xml"/>
416 </copy>
417 </target>
418 <target name="-post-compile">
419 <!-- Empty placeholder for easier customization. -->
420 <!-- You can override this target in the ../build.xml file. -->
421 </target>
422 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
423 <target name="-pre-compile-single">
424 <!-- Empty placeholder for easier customization. -->
425 <!-- You can override this target in the ../build.xml file. -->
426 </target>
427 <target depends="init,deps-jar,-pre-pre-compile,wsimport-client-compile" name="-do-compile-single">
428 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
429 <webproject2:javac>
430 <customize>
431 <patternset includes="${javac.includes}"/>
432 </customize>
433 </webproject2:javac>
434 <copy todir="${build.classes.dir}">
435 <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
436 </copy>
437 </target>
438 <target name="-post-compile-single">
439 <!-- Empty placeholder for easier customization. -->
440 <!-- You can override this target in the ../build.xml file. -->
441 </target>
442 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
443 <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
444 <mkdir dir="${build.generated.dir}/src"/>
445 <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
446 <arg value="-uriroot"/>
447 <arg file="${basedir}/${build.web.dir}"/>
448 <arg value="-d"/>
449 <arg file="${basedir}/${build.generated.dir}/src"/>
450 <arg value="-die1"/>
451 <arg value="-compilerSourceVM ${javac.source}"/>
452 <arg value="-compilerTargetVM ${javac.target}"/>
453 <classpath path="${java.home}/../lib/tools.jar:${copyfiles.classpath}:${jspcompilation.classpath}"/>
454 </java>
455 <mkdir dir="${build.generated.dir}/classes"/>
456 <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
457 </target>
458 <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
459 <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
460 <mkdir dir="${build.generated.dir}/src"/>
461 <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
462 <arg value="-uriroot"/>
463 <arg file="${basedir}/${build.web.dir}"/>
464 <arg value="-d"/>
465 <arg file="${basedir}/${build.generated.dir}/src"/>
466 <arg value="-die1"/>
467 <arg value="-jspc.files"/>
468 <arg path="${jsp.includes}"/>
469 <arg value="-compilerSourceVM ${javac.source}"/>
470 <arg value="-compilerTargetVM ${javac.target}"/>
471 <classpath path="${java.home}/../lib/tools.jar:${copyfiles.classpath}:${jspcompilation.classpath}"/>
472 </java>
473 <mkdir dir="${build.generated.dir}/classes"/>
474 <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
475 <customize>
476 <patternset includes="${javac.jsp.includes}"/>
477 </customize>
478 </webproject2:javac>
479 </target>
480 <target name="compile-single-jsp">
481 <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
482 <antcall target="-do-compile-single-jsp"/>
483 </target>
484 <!--
485 DIST BUILDING SECTION
486 -->
487 <target name="-pre-dist">
488 <!-- Empty placeholder for easier customization. -->
489 <!-- You can override this target in the ../build.xml file. -->
490 </target>
491 <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
492 <dirname file="${dist.war}" property="dist.jar.dir"/>
493 <mkdir dir="${dist.jar.dir}"/>
494 <jar compress="${jar.compress}" jarfile="${dist.war}">
495 <fileset dir="${build.web.dir}"/>
496 </jar>
497 </target>
498 <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
499 <dirname file="${dist.war}" property="dist.jar.dir"/>
500 <mkdir dir="${dist.jar.dir}"/>
501 <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
502 <fileset dir="${build.web.dir}"/>
503 </jar>
504 </target>
505 <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
506 <dirname file="${dist.war}" property="dist.jar.dir"/>
507 <mkdir dir="${dist.jar.dir}"/>
508 <jar compress="${jar.compress}" jarfile="${dist.war}">
509 <fileset dir="${build.web.dir}"/>
510 </jar>
511 </target>
512 <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
513 <dirname file="${dist.war}" property="dist.jar.dir"/>
514 <mkdir dir="${dist.jar.dir}"/>
515 <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
516 <fileset dir="${build.web.dir}"/>
517 </jar>
518 </target>
519 <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
520 <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
521 <basename file="${reference.NhincLib.jar}" property="included.lib.reference.NhincLib.jar"/>
522 <copy-ear-war file="${reference.NhincLib.jar}" propname="included.lib.reference.NhincLib.jar.X"/>
523 <basename file="${reference.MpiLib.jar}" property="included.lib.reference.MpiLib.jar"/>
524 <copy-ear-war file="${reference.MpiLib.jar}" propname="included.lib.reference.MpiLib.jar.X"/>
525 <basename file="${reference.DocumentRepository.jar}" property="included.lib.reference.DocumentRepository.jar"/>
526 <copy-ear-war file="${reference.DocumentRepository.jar}" propname="included.lib.reference.DocumentRepository.jar.X"/>
527 <basename file="${file.reference.commons-logging-1.1.1.jar}" property="included.lib.file.reference.commons-logging-1.1.1.jar"/>
528 <copy-ear-war file="${file.reference.commons-logging-1.1.1.jar}" propname="included.lib.file.reference.commons-logging-1.1.1.jar.X"/>
529 <basename file="${file.reference.log4j-1.2.15.jar}" property="included.lib.file.reference.log4j-1.2.15.jar"/>
530 <copy-ear-war file="${file.reference.log4j-1.2.15.jar}" propname="included.lib.file.reference.log4j-1.2.15.jar.X"/>
531 <basename file="${file.reference.antlr-2.7.6.jar}" property="included.lib.file.reference.antlr-2.7.6.jar"/>
532 <copy-ear-war file="${file.reference.antlr-2.7.6.jar}" propname="included.lib.file.reference.antlr-2.7.6.jar.X"/>
533 <basename file="${file.reference.asm-attrs.jar}" property="included.lib.file.reference.asm-attrs.jar"/>
534 <copy-ear-war file="${file.reference.asm-attrs.jar}" propname="included.lib.file.reference.asm-attrs.jar.X"/>
535 <basename file="${file.reference.asm.jar}" property="included.lib.file.reference.asm.jar"/>
536 <copy-ear-war file="${file.reference.asm.jar}" propname="included.lib.file.reference.asm.jar.X"/>
537 <basename file="${file.reference.cglib-2.1.3.jar}" property="included.lib.file.reference.cglib-2.1.3.jar"/>
538 <copy-ear-war file="${file.reference.cglib-2.1.3.jar}" propname="included.lib.file.reference.cglib-2.1.3.jar.X"/>
539 <basename file="${file.reference.commons-collections-2.1.1.jar}" property="included.lib.file.reference.commons-collections-2.1.1.jar"/>
540 <copy-ear-war file="${file.reference.commons-collections-2.1.1.jar}" propname="included.lib.file.reference.commons-collections-2.1.1.jar.X"/>
541 <basename file="${file.reference.dom4j-1.6.1.jar}" property="included.lib.file.reference.dom4j-1.6.1.jar"/>
542 <copy-ear-war file="${file.reference.dom4j-1.6.1.jar}" propname="included.lib.file.reference.dom4j-1.6.1.jar.X"/>
543 <basename file="${file.reference.ehcache-1.2.3.jar}" property="included.lib.file.reference.ehcache-1.2.3.jar"/>
544 <copy-ear-war file="${file.reference.ehcache-1.2.3.jar}" propname="included.lib.file.reference.ehcache-1.2.3.jar.X"/>
545 <basename file="${file.reference.hibernate3.jar}" property="included.lib.file.reference.hibernate3.jar"/>
546 <copy-ear-war file="${file.reference.hibernate3.jar}" propname="included.lib.file.reference.hibernate3.jar.X"/>
547 <basename file="${file.reference.jdbc2_0-stdext.jar}" property="included.lib.file.reference.jdbc2_0-stdext.jar"/>
548 <copy-ear-war file="${file.reference.jdbc2_0-stdext.jar}" propname="included.lib.file.reference.jdbc2_0-stdext.jar.X"/>
549 <basename file="${file.reference.jta.jar}" property="included.lib.file.reference.jta.jar"/>
550 <copy-ear-war file="${file.reference.jta.jar}" propname="included.lib.file.reference.jta.jar.X"/>
551 <basename file="${file.reference.c3p0-0.9.1.2.jar}" property="included.lib.file.reference.c3p0-0.9.1.2.jar"/>
552 <copy-ear-war file="${file.reference.c3p0-0.9.1.2.jar}" propname="included.lib.file.reference.c3p0-0.9.1.2.jar.X"/>
553 <basename file="${file.reference.mysql-connector-java-5.0.8-bin.jar}" property="included.lib.file.reference.mysql-connector-java-5.0.8-bin.jar"/>
554 <copy-ear-war file="${file.reference.mysql-connector-java-5.0.8-bin.jar}" propname="included.lib.file.reference.mysql-connector-java-5.0.8-bin.jar.X"/>
555 <mkdir dir="${build.web.dir}/META-INF"/>
556 <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
557 <attribute name="Class-Path" value="${included.lib.reference.NhincLib.jar} ${included.lib.reference.MpiLib.jar} ${included.lib.reference.DocumentRepository.jar} ${included.lib.file.reference.commons-logging-1.1.1.jar} ${included.lib.file.reference.log4j-1.2.15.jar} ${included.lib.file.reference.antlr-2.7.6.jar} ${included.lib.file.reference.asm-attrs.jar} ${included.lib.file.reference.asm.jar} ${included.lib.file.reference.cglib-2.1.3.jar} ${included.lib.file.reference.commons-collections-2.1.1.jar} ${included.lib.file.reference.dom4j-1.6.1.jar} ${included.lib.file.reference.ehcache-1.2.3.jar} ${included.lib.file.reference.hibernate3.jar} ${included.lib.file.reference.jdbc2_0-stdext.jar} ${included.lib.file.reference.jta.jar} ${included.lib.file.reference.c3p0-0.9.1.2.jar} ${included.lib.file.reference.mysql-connector-java-5.0.8-bin.jar} "/>
558 </manifest>
559 <delete dir="${dist.ear.dir}/temp"/>
560 </target>
561 <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
562 <copy file="${reference.NhincLib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
563 <copy file="${reference.MpiLib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
564 <copy file="${reference.DocumentRepository.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
565 <copy file="${file.reference.commons-logging-1.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
566 <copy file="${file.reference.log4j-1.2.15.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
567 <copy file="${file.reference.antlr-2.7.6.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
568 <copy file="${file.reference.asm-attrs.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
569 <copy file="${file.reference.asm.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
570 <copy file="${file.reference.cglib-2.1.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
571 <copy file="${file.reference.commons-collections-2.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
572 <copy file="${file.reference.dom4j-1.6.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
573 <copy file="${file.reference.ehcache-1.2.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
574 <copy file="${file.reference.hibernate3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
575 <copy file="${file.reference.jdbc2_0-stdext.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
576 <copy file="${file.reference.jta.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
577 <copy file="${file.reference.c3p0-0.9.1.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
578 <copy file="${file.reference.mysql-connector-java-5.0.8-bin.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
579 </target>
580 <target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" name="do-ear-dist">
581 <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
582 <mkdir dir="${dist.jar.dir}"/>
583 <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
584 <fileset dir="${build.web.dir}"/>
585 </jar>
586 </target>
587 <target name="-post-dist">
588 <!-- Empty placeholder for easier customization. -->
589 <!-- You can override this target in the ../build.xml file. -->
590 </target>
591 <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
592 <target depends="init,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
593 <!--
594 EXECUTION SECTION
595 -->
596 <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
597 <target name="-pre-run-deploy">
598 <!-- Empty placeholder for easier customization. -->
599 <!-- You can override this target in the ../build.xml file. -->
600 </target>
601 <target name="-post-run-deploy">
602 <!-- Empty placeholder for easier customization. -->
603 <!-- You can override this target in the ../build.xml file. -->
604 </target>
605 <target name="-pre-nbmodule-run-deploy">
606 <!-- Empty placeholder for easier customization. -->
607 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
608 </target>
609 <target name="-post-nbmodule-run-deploy">
610 <!-- Empty placeholder for easier customization. -->
611 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
612 </target>
613 <target name="-run-deploy-am">
614 <!-- Task to deploy to the Access Manager runtime. -->
615 </target>
616 <target depends="init,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
617 <nbjpdaappreloaded/>
618 </target>
619 <target if="netbeans.home" name="-run-deploy-nb">
620 <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
621 </target>
622 <target name="-init-deploy-ant" unless="netbeans.home">
623 <property name="deploy.ant.archive" value="${dist.war}"/>
624 <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
625 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
626 <property name="deploy.ant.enabled" value="true"/>
627 </target>
628 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
629 <target if="netbeans.home" name="-run-undeploy-nb">
630 <fail message="Undeploy is not supported from within the IDE"/>
631 </target>
632 <target depends="init,-pre-dist,dist,-post-dist" name="verify">
633 <nbverify file="${dist.war}"/>
634 </target>
635 <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
636 <target if="do.display.browser" name="-init-display-browser">
637 <condition property="do.display.browser.nb">
638 <isset property="netbeans.home"/>
639 </condition>
640 <condition property="do.display.browser.cl">
641 <isset property="deploy.ant.enabled"/>
642 </condition>
643 </target>
644 <target if="do.display.browser.nb" name="-display-browser-nb">
645 <nbbrowse url="${client.url}"/>
646 </target>
647 <target if="do.display.browser.cl" name="-get-browser" unless="browser">
648 <condition property="browser" value="rundll32">
649 <os family="windows"/>
650 </condition>
651 <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
652 <os family="windows"/>
653 </condition>
654 <condition property="browser" value="/usr/bin/open">
655 <os family="mac"/>
656 </condition>
657 <property environment="env"/>
658 <condition property="browser" value="${env.BROWSER}">
659 <isset property="env.BROWSER"/>
660 </condition>
661 <condition property="browser" value="/usr/bin/firefox">
662 <available file="/usr/bin/firefox"/>
663 </condition>
664 <condition property="browser" value="/usr/local/firefox/firefox">
665 <available file="/usr/local/firefox/firefox"/>
666 </condition>
667 <condition property="browser" value="/usr/bin/mozilla">
668 <available file="/usr/bin/mozilla"/>
669 </condition>
670 <condition property="browser" value="/usr/local/mozilla/mozilla">
671 <available file="/usr/local/mozilla/mozilla"/>
672 </condition>
673 <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
674 <available file="/usr/sfw/lib/firefox/firefox"/>
675 </condition>
676 <condition property="browser" value="/opt/csw/bin/firefox">
677 <available file="/opt/csw/bin/firefox"/>
678 </condition>
679 <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
680 <available file="/usr/sfw/lib/mozilla/mozilla"/>
681 </condition>
682 <condition property="browser" value="/opt/csw/bin/mozilla">
683 <available file="/opt/csw/bin/mozilla"/>
684 </condition>
685 </target>
686 <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
687 <fail unless="browser">
688 Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
689 </fail>
690 <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
691 <echo>Launching ${browse.url}</echo>
692 <exec executable="${browser}" spawn="true">
693 <arg line="${browser.args} ${browse.url}"/>
694 </exec>
695 </target>
696 <target depends="init,compile-single" name="run-main">
697 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
698 <webproject1:java classname="${run.class}"/>
699 </target>
700 <!--
701 DEBUGGING SECTION
702 -->
703 <target depends="init,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
704 <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true"/>
705 <antcall target="connect-debugger"/>
706 <antcall target="debug-display-browser"/>
707 <antcall target="connect-client-debugger"/>
708 </target>
709 <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
710 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
711 <classpath>
712 <path path="${debug.classpath}:${j2ee.platform.classpath}:${ws.debug.classpaths}"/>
713 </classpath>
714 <sourcepath>
715 <path path="${web.docbase.dir}:${ws.web.docbase.dirs}"/>
716 </sourcepath>
717 </nbjpdaconnect>
718 </target>
719 <target if="do.display.browser.debug" name="debug-display-browser">
720 <nbbrowse url="${client.url}"/>
721 </target>
722 <target if="do.debug.client" name="connect-client-debugger">
723 <webproject1:nbjsdebugstart webUrl="${client.url}"/>
724 </target>
725 <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
726 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
727 <webproject1:nbjpdastart name="${debug.class}"/>
728 </target>
729 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
730 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
731 <webproject1:debug classname="${debug.class}"/>
732 </target>
733 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
734 <target depends="init" name="-pre-debug-fix">
735 <fail unless="fix.includes">Must set fix.includes</fail>
736 <property name="javac.includes" value="${fix.includes}.java"/>
737 </target>
738 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
739 <webproject1:nbjpdareload/>
740 </target>
741 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
742 <!--
743 JAVADOC SECTION
744 -->
745 <target depends="init" name="javadoc-build">
746 <mkdir dir="${dist.javadoc.dir}"/>
747 <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
748 <classpath>
749 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
750 </classpath>
751 <sourcepath>
752 <pathelement location="${src.dir}"/>
753 </sourcepath>
754 <packageset dir="${src.dir}" includes="*/**"/>
755 <fileset dir="${src.dir}" includes="*.java"/>
756 </javadoc>
757 </target>
758 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
759 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
760 </target>
761 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
762 <!--
763
764 JUNIT COMPILATION SECTION
765 -->
766 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
767 <mkdir dir="${build.test.classes.dir}"/>
768 </target>
769 <target name="-pre-compile-test">
770 <!-- Empty placeholder for easier customization. -->
771 <!-- You can override this target in the ../build.xml file. -->
772 </target>
773 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
774 <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
775 <copy todir="${build.test.classes.dir}">
776 <fileset dir="${test.src.dir}" excludes="**/*.java"/>
777 </copy>
778 </target>
779 <target name="-post-compile-test">
780 <!-- Empty placeholder for easier customization. -->
781 <!-- You can override this target in the ../build.xml file. -->
782 </target>
783 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
784 <target name="-pre-compile-test-single">
785 <!-- Empty placeholder for easier customization. -->
786 <!-- You can override this target in the ../build.xml file. -->
787 </target>
788 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
789 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
790 <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}">
791 <customize>
792 <patternset includes="${javac.includes}"/>
793 </customize>
794 </webproject2:javac>
795 <copy todir="${build.test.classes.dir}">
796 <fileset dir="${test.src.dir}" excludes="**/*.java"/>
797 </copy>
798 </target>
799 <target name="-post-compile-test-single">
800 <!-- Empty placeholder for easier customization. -->
801 <!-- You can override this target in the ../build.xml file. -->
802 </target>
803 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
804 <!--
805
806 JUNIT EXECUTION SECTION
807 -->
808 <target depends="init" if="have.tests" name="-pre-test-run">
809 <mkdir dir="${build.test.results.dir}"/>
810 </target>
811 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
812 <webproject2:junit/>
813 </target>
814 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
815 <fail if="tests.failed">Some tests failed; see details above.</fail>
816 </target>
817 <target depends="init" if="have.tests" name="test-report"/>
818 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
819 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
820 <target depends="init" if="have.tests" name="-pre-test-run-single">
821 <mkdir dir="${build.test.results.dir}"/>
822 </target>
823 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
824 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
825 <webproject2:junit includes="${test.includes}"/>
826 </target>
827 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
828 <fail if="tests.failed">Some tests failed; see details above.</fail>
829 </target>
830 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
831 <!--
832
833 JUNIT DEBUGGING SECTION
834 -->
835 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
836 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
837 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
838 <delete file="${test.report.file}"/>
839 <!-- must exist, otherwise the XML formatter would fail -->
840 <mkdir dir="${build.test.results.dir}"/>
841 <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
842 <customize>
843 <arg value="showoutput=true"/>
844 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
845 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
846 </customize>
847 </webproject1:debug>
848 </target>
849 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
850 <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
851 </target>
852 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
853 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
854 <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
855 </target>
856 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
857 <!--
858
859 CLEANUP SECTION
860 -->
861 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
862 <ant antfile="${project.DocumentRepository}/build.xml" inheritall="false" target="clean"/>
863 <ant antfile="${project.MpiLib}/build.xml" inheritall="false" target="clean"/>
864 <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="clean"/>
865 </target>
866 <target depends="init" name="do-clean">
867 <condition property="build.dir.to.clean" value="${build.web.dir}">
868 <isset property="dist.ear.dir"/>
869 </condition>
870 <property name="build.dir.to.clean" value="${build.web.dir}"/>
871 <delete includeEmptyDirs="true" quiet="true">
872 <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
873 </delete>
874 <delete dir="${build.dir}"/>
875 <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
876 <delete dir="${dist.dir}"/>
877 </target>
878 <target depends="do-clean" if="status.clean-failed" name="check-clean">
879 <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
880 <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
881 </target>
882 <target name="-post-clean">
883 <!-- Empty placeholder for easier customization. -->
884 <!-- You can override this target in the ../build.xml file. -->
885 </target>
886 <target depends="init,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
887 <target depends="clean" description="Clean build products." name="clean-ear"/>
888</project>
Note: See TracBrowser for help on using the repository browser.