source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/PatientCorrelationFacadeDteEjb/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: 30.9 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
6For the purpose of easier reading the script
7is divided into following sections:
8
9 - initialization
10 - compilation
11 - dist
12 - execution
13 - debugging
14 - javadoc
15 - cleanup
16
17 -->
18<project xmlns:ejbjarproject1="http://www.netbeans.org/ns/j2ee-ejbjarproject/1" xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2" xmlns:ejbjarproject3="http://www.netbeans.org/ns/j2ee-ejbjarproject/3" basedir=".." default="default" name="PatientCorrelationFacadeDteEjb-impl">
19 <import file="jaxws-build.xml"/>
20 <import file="ant-deploy.xml"/>
21 <target depends="dist,javadoc" description="Build whole project." name="default"/>
22 <!--
23 INITIALIZATION SECTION
24 -->
25 <target name="-pre-init">
26 <!-- Empty placeholder for easier customization. -->
27 <!-- You can override this target in the ../build.xml file. -->
28 </target>
29 <target depends="-pre-init" name="-init-private">
30 <property file="nbproject/private/private.properties"/>
31 </target>
32 <target depends="-pre-init,-init-private" name="-init-userdir">
33 <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
34 </target>
35 <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
36 <property file="${user.properties.file}"/>
37 <!-- The two properties below are usually overridden -->
38 <!-- by the active platform. Just a fallback. -->
39 <property name="default.javac.source" value="1.4"/>
40 <property name="default.javac.target" value="1.4"/>
41 </target>
42 <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
43 <property file="nbproject/project.properties"/>
44 </target>
45 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
46 <!-- Ensure configuration directory exists. -->
47 <mkdir dir="${meta.inf}"/>
48 <property name="runmain.jvmargs" value=""/>
49 <condition property="have.tests">
50 <or>
51 <available file="${test.src.dir}"/>
52 </or>
53 </condition>
54 <condition property="have.sources">
55 <or>
56 <available file="${src.dir}"/>
57 </or>
58 </condition>
59 <condition property="netbeans.home+have.tests">
60 <and>
61 <isset property="netbeans.home"/>
62 <isset property="have.tests"/>
63 </and>
64 </condition>
65 <condition property="no.javadoc.preview">
66 <isfalse value="${javadoc.preview}"/>
67 </condition>
68 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
69 <condition property="classes.dir" value="${build.ear.classes.dir}">
70 <isset property="dist.ear.dir"/>
71 </condition>
72 <property name="classes.dir" value="${build.classes.dir}"/>
73 <condition property="no.deps">
74 <and>
75 <istrue value="${no.dependencies}"/>
76 </and>
77 </condition>
78 <condition property="no.dist.ear.dir">
79 <not>
80 <isset property="dist.ear.dir"/>
81 </not>
82 </condition>
83 <property name="source.encoding" value="${file.encoding}"/>
84 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
85 <and>
86 <isset property="javadoc.encoding"/>
87 <not>
88 <equals arg1="${javadoc.encoding}" arg2=""/>
89 </not>
90 </and>
91 </condition>
92 <property name="javadoc.encoding.used" value="${source.encoding}"/>
93 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
94 <and>
95 <isset property="jaxws.endorsed.dir"/>
96 <available file="nbproject/jaxws-build.xml"/>
97 </and>
98 </condition>
99 </target>
100 <target name="-post-init">
101 <!-- Empty placeholder for easier customization. -->
102 <!-- You can override this target in the ../build.xml file. -->
103 </target>
104 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
105 <fail unless="src.dir">Must set src.dir</fail>
106 <fail unless="test.src.dir">Must set test.src.dir</fail>
107 <fail unless="build.dir">Must set build.dir</fail>
108 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
109 <fail unless="dist.dir">Must set dist.dir</fail>
110 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
111 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
112 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
113 <fail unless="dist.jar">Must set dist.jar</fail>
114 <fail unless="j2ee.platform.classpath">
115The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
116Either open the project in the IDE and assign the server or setup the server classpath manually.
117For example like this:
118 ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
119or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
120 </fail>
121 </target>
122 <target name="-init-macrodef-property">
123 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
124 <attribute name="name"/>
125 <attribute name="value"/>
126 <sequential>
127 <property name="@{name}" value="${@{value}}"/>
128 </sequential>
129 </macrodef>
130 </target>
131 <target name="-init-macrodef-javac">
132 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
133 <attribute default="${src.dir}" name="srcdir"/>
134 <attribute default="${build.classes.dir}" name="destdir"/>
135 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
136 <attribute default="${javac.debug}" name="debug"/>
137 <element name="customize" optional="true"/>
138 <sequential>
139 <property name="javac.compilerargs" value=""/>
140 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" includeantruntime="false" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
141 <classpath>
142 <path path="@{classpath}"/>
143 </classpath>
144 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
145 <customize/>
146 </javac>
147 </sequential>
148 </macrodef>
149 </target>
150 <target name="-init-macrodef-junit">
151 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
152 <attribute default="**/*Test.java" name="includes"/>
153 <sequential>
154 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
155 <batchtest todir="${build.test.results.dir}">
156 <fileset dir="${test.src.dir}" includes="@{includes}"/>
157 </batchtest>
158 <classpath>
159 <path path="${run.test.classpath}"/>
160 <path path="${j2ee.platform.classpath}"/>
161 </classpath>
162 <syspropertyset>
163 <propertyref prefix="test-sys-prop."/>
164 <mapper from="test-sys-prop.*" to="*" type="glob"/>
165 </syspropertyset>
166 <formatter type="brief" usefile="false"/>
167 <formatter type="xml"/>
168 </junit>
169 </sequential>
170 </macrodef>
171 </target>
172 <target name="-init-macrodef-java">
173 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
174 <attribute default="${main.class}" name="classname"/>
175 <element name="customize" optional="true"/>
176 <sequential>
177 <java classname="@{classname}" fork="true">
178 <jvmarg line="${runmain.jvmargs}"/>
179 <classpath>
180 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
181 </classpath>
182 <syspropertyset>
183 <propertyref prefix="run-sys-prop."/>
184 <mapper from="run-sys-prop.*" to="*" type="glob"/>
185 </syspropertyset>
186 <customize/>
187 </java>
188 </sequential>
189 </macrodef>
190 </target>
191 <target name="-init-macrodef-nbjpda">
192 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
193 <attribute default="${main.class}" name="name"/>
194 <attribute default="${debug.classpath}" name="classpath"/>
195 <sequential>
196 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="dt_socket">
197 <classpath>
198 <path path="@{classpath}"/>
199 </classpath>
200 </nbjpdastart>
201 </sequential>
202 </macrodef>
203 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
204 <attribute default="${build.classes.dir}" name="dir"/>
205 <sequential>
206 <nbjpdareload>
207 <fileset dir="@{dir}" includes="${fix.classes}">
208 <include name="${fix.includes}*.class"/>
209 </fileset>
210 </nbjpdareload>
211 </sequential>
212 </macrodef>
213 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
214 <sequential>
215 <nbjpdaappreloaded/>
216 </sequential>
217 </macrodef>
218 </target>
219 <target name="-init-debug-args">
220 <property name="version-output" value="java version &quot;${ant.java.version}"/>
221 <condition property="have-jdk-older-than-1.4">
222 <or>
223 <contains string="${version-output}" substring="java version &quot;1.0"/>
224 <contains string="${version-output}" substring="java version &quot;1.1"/>
225 <contains string="${version-output}" substring="java version &quot;1.2"/>
226 <contains string="${version-output}" substring="java version &quot;1.3"/>
227 </or>
228 </condition>
229 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
230 <istrue value="${have-jdk-older-than-1.4}"/>
231 </condition>
232 </target>
233 <target depends="-init-debug-args" name="-init-macrodef-debug">
234 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
235 <attribute default="${main.class}" name="classname"/>
236 <attribute default="${debug.classpath}" name="classpath"/>
237 <attribute default="${application.args}" name="args"/>
238 <element name="customize" optional="true"/>
239 <sequential>
240 <java classname="@{classname}" fork="true">
241 <jvmarg line="${debug-args-line}"/>
242 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
243 <classpath>
244 <path path="@{classpath}"/>
245 </classpath>
246 <arg line="@{args}"/>
247 <customize/>
248 </java>
249 </sequential>
250 </macrodef>
251 </target>
252 <target depends="-pre-init,-init-private,-init-userdir,-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-debug" name="init"/>
253 <!--
254 COMPILATION SECTION
255 -->
256 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
257 <ant antfile="${project.AssigningAuthoritiesToHomeCommunityMappingDAO}/build.xml" inheritall="false" target="jar"/>
258 <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="jar"/>
259 </target>
260 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
261 <ant antfile="${project.AssigningAuthoritiesToHomeCommunityMappingDAO}/build.xml" inheritall="false" target="jar"/>
262 <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="jar"/>
263 </target>
264 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
265 <target depends="init,deps-jar,wsimport-service-generate" name="-pre-pre-compile">
266 <mkdir dir="${build.classes.dir}"/>
267 <mkdir dir="${build.ear.classes.dir}"/>
268 </target>
269 <target name="-pre-compile">
270 <!-- Empty placeholder for easier customization. -->
271 <!-- You can override this target in the ../build.xml file. -->
272 </target>
273 <target depends="compile" name="library-inclusion-in-archive">
274 <copy file="${reference.NhincLib.jar}" todir="${build.classes.dir}"/>
275 <copy file="${file.reference.commons-logging-1.1.1.jar}" todir="${build.classes.dir}"/>
276 <copy file="${file.reference.log4j-1.2.15.jar}" todir="${build.classes.dir}"/>
277 <copy file="${reference.AssigningAuthoritiesToHomeCommunityMappingDAO.jar}" todir="${build.classes.dir}"/>
278 </target>
279 <target depends="compile" name="library-inclusion-in-manifest">
280 <basename file="${reference.NhincLib.jar}" property="included.lib.reference.NhincLib.jar"/>
281 <copy file="${reference.NhincLib.jar}" todir="${dist.ear.dir}"/>
282 <basename file="${file.reference.commons-logging-1.1.1.jar}" property="included.lib.file.reference.commons-logging-1.1.1.jar"/>
283 <copy file="${file.reference.commons-logging-1.1.1.jar}" todir="${dist.ear.dir}"/>
284 <basename file="${file.reference.log4j-1.2.15.jar}" property="included.lib.file.reference.log4j-1.2.15.jar"/>
285 <copy file="${file.reference.log4j-1.2.15.jar}" todir="${dist.ear.dir}"/>
286 <basename file="${reference.AssigningAuthoritiesToHomeCommunityMappingDAO.jar}" property="included.lib.reference.AssigningAuthoritiesToHomeCommunityMappingDAO.jar"/>
287 <copy file="${reference.AssigningAuthoritiesToHomeCommunityMappingDAO.jar}" todir="${dist.ear.dir}"/>
288 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
289 <attribute name="Class-Path" value="${included.lib.reference.NhincLib.jar} ${included.lib.file.reference.commons-logging-1.1.1.jar} ${included.lib.file.reference.log4j-1.2.15.jar} ${included.lib.reference.AssigningAuthoritiesToHomeCommunityMappingDAO.jar} "/>
290 </manifest>
291 </target>
292 <target name="-copy-meta-inf">
293 <copy todir="${classes.dir}">
294 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
295 </copy>
296 <copy todir="${classes.dir}/META-INF">
297 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
298 </copy>
299 </target>
300 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf,wsimport-service-compile" if="have.sources" name="-do-compile">
301 <ejbjarproject2:javac destdir="${classes.dir}"/>
302 <copy todir="${classes.dir}">
303 <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
304 </copy>
305 </target>
306 <target name="-post-compile">
307 <!-- Empty placeholder for easier customization. -->
308 <!-- You can override this target in the ../build.xml file. -->
309 </target>
310 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
311 <target name="-pre-compile-single">
312 <!-- Empty placeholder for easier customization. -->
313 <!-- You can override this target in the ../build.xml file. -->
314 </target>
315 <target depends="init,deps-jar,-pre-pre-compile,wsimport-service-compile" name="-do-compile-single">
316 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
317 <ejbjarproject2:javac>
318 <customize>
319 <include name="${javac.includes}"/>
320 </customize>
321 </ejbjarproject2:javac>
322 </target>
323 <target name="-post-compile-single">
324 <!-- Empty placeholder for easier customization. -->
325 <!-- You can override this target in the ../build.xml file. -->
326 </target>
327 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
328 <!--
329 DIST BUILDING SECTION
330 -->
331 <target name="-pre-dist">
332 <!-- Empty placeholder for easier customization. -->
333 <!-- You can override this target in the ../build.xml file. -->
334 </target>
335 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
336 <dirname file="${dist.jar}" property="dist.jar.dir"/>
337 <mkdir dir="${dist.jar.dir}"/>
338 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
339 <fileset dir="${build.classes.dir}"/>
340 </jar>
341 </target>
342 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
343 <dirname file="${dist.jar}" property="dist.jar.dir"/>
344 <mkdir dir="${dist.jar.dir}"/>
345 <jar compress="${jar.compress}" jarfile="${dist.jar}">
346 <fileset dir="${build.classes.dir}"/>
347 </jar>
348 </target>
349 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
350 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
351 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
352 <mkdir dir="${dist.jar.dir}"/>
353 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
354 <fileset dir="${build.ear.classes.dir}"/>
355 </jar>
356 </target>
357 <target name="-post-dist">
358 <!-- Empty placeholder for easier customization. -->
359 <!-- You can override this target in the ../build.xml file. -->
360 </target>
361 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
362 <target depends="init,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
363 <!--
364 EXECUTION SECTION
365 -->
366 <target depends="run-deploy" description="Deploy to server." name="run"/>
367 <target name="-init-deploy">
368 <property name="include.jar.manifest" value=""/>
369 </target>
370 <target name="pre-run-deploy">
371 <!-- Empty placeholder for easier customization. -->
372 <!-- You can override this target in the ../build.xml file. -->
373 </target>
374 <target name="post-run-deploy">
375 <!-- Empty placeholder for easier customization. -->
376 <!-- You can override this target in the ../build.xml file. -->
377 </target>
378 <target name="-pre-nbmodule-run-deploy">
379 <!-- Empty placeholder for easier customization. -->
380 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
381 </target>
382 <target name="-post-nbmodule-run-deploy">
383 <!-- Empty placeholder for easier customization. -->
384 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
385 </target>
386 <target name="-run-deploy-am">
387 <!-- Task to deploy to the Access Manager runtime. -->
388 </target>
389 <target depends="init,-init-deploy,compile,library-inclusion-in-archive,dist,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">
390 <nbjpdaappreloaded/>
391 </target>
392 <target if="netbeans.home" name="-run-deploy-nb">
393 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
394 </target>
395 <target name="-init-deploy-ant" unless="netbeans.home">
396 <property name="deploy.ant.archive" value="${dist.jar}"/>
397 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
398 <property name="deploy.ant.enabled" value="true"/>
399 </target>
400 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
401 <target if="netbeans.home" name="-run-undeploy-nb">
402 <fail message="Undeploy is not supported from within the IDE"/>
403 </target>
404 <target depends="dist" name="verify">
405 <nbverify file="${dist.jar}"/>
406 </target>
407 <target depends="init,compile-single" name="run-main">
408 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
409 <ejbjarproject3:java classname="${run.class}"/>
410 </target>
411 <!--
412 DEBUGGING SECTION
413 -->
414 <target depends="init,compile,dist" description="Debug project in IDE." if="netbeans.home" name="debug">
415 <nbdeploy debugmode="true"/>
416 <antcall target="connect-debugger"/>
417 </target>
418 <target name="connect-debugger" unless="is.debugged">
419 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
420 <classpath>
421 <path path="${debug.classpath}"/>
422 </classpath>
423 <sourcepath>
424 <path path="${web.docbase.dir}"/>
425 </sourcepath>
426 </nbjpdaconnect>
427 </target>
428 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
429 <ejbjarproject1:nbjpdastart/>
430 </target>
431 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
432 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
433 <ejbjarproject1:debug/>
434 </target>
435 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
436 <target depends="init" name="-pre-debug-fix">
437 <fail unless="fix.includes">Must set fix.includes</fail>
438 <property name="javac.includes" value="${fix.includes}.java"/>
439 </target>
440 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
441 <ejbjarproject1:nbjpdareload/>
442 </target>
443 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
444 <!--
445 JAVADOC SECTION
446 -->
447 <target depends="init" name="javadoc-build">
448 <mkdir dir="${dist.javadoc.dir}"/>
449 <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}">
450 <classpath>
451 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
452 </classpath>
453 <sourcepath>
454 <pathelement location="${src.dir}"/>
455 </sourcepath>
456 <packageset dir="${src.dir}" includes="*/**"/>
457 <fileset dir="${src.dir}" includes="*.java"/>
458 </javadoc>
459 </target>
460 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
461 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
462 </target>
463 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
464 <!--
465 JUNIT COMPILATION SECTION
466 -->
467 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
468 <mkdir dir="${build.test.classes.dir}"/>
469 </target>
470 <target name="-pre-compile-test">
471 <!-- Empty placeholder for easier customization. -->
472 <!-- You can override this target in the ../build.xml file. -->
473 </target>
474 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
475 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
476 <copy todir="${build.test.classes.dir}">
477 <fileset dir="${test.src.dir}" excludes="**/*.java"/>
478 </copy>
479 </target>
480 <target name="-post-compile-test">
481 <!-- Empty placeholder for easier customization. -->
482 <!-- You can override this target in the ../build.xml file. -->
483 </target>
484 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
485 <target name="-pre-compile-test-single">
486 <!-- Empty placeholder for easier customization. -->
487 <!-- You can override this target in the ../build.xml file. -->
488 </target>
489 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
490 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
491 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}">
492 <customize>
493 <patternset includes="${javac.includes}"/>
494 </customize>
495 </ejbjarproject2:javac>
496 </target>
497 <target name="-post-compile-test-single">
498 <!-- Empty placeholder for easier customization. -->
499 <!-- You can override this target in the ../build.xml file. -->
500 </target>
501 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
502 <!--
503 JUNIT EXECUTION SECTION
504 -->
505 <target depends="init" if="have.tests" name="-pre-test-run">
506 <mkdir dir="${build.test.results.dir}"/>
507 </target>
508 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
509 <ejbjarproject2:junit/>
510 </target>
511 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
512 <fail if="tests.failed">Some tests failed; see details above.</fail>
513 </target>
514 <target depends="init" if="have.tests" name="test-report"/>
515 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
516 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
517 <target depends="init" if="have.tests" name="-pre-test-run-single">
518 <mkdir dir="${build.test.results.dir}"/>
519 </target>
520 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
521 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
522 <ejbjarproject2:junit includes="${test.includes}"/>
523 </target>
524 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
525 <fail if="tests.failed">Some tests failed; see details above.</fail>
526 </target>
527 <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"/>
528 <!--
529 JUNIT DEBUGGING SECTION
530 -->
531 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
532 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
533 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
534 <delete file="${test.report.file}"/>
535 <!-- the directory must exist, otherwise the XML formatter would fail -->
536 <mkdir dir="${build.test.results.dir}"/>
537 <ejbjarproject1: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}">
538 <customize>
539 <arg value="showoutput=true"/>
540 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
541 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
542 </customize>
543 </ejbjarproject1:debug>
544 </target>
545 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
546 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
547 </target>
548 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
549 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
550 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
551 </target>
552 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
553 <!--
554 CLEANUP SECTION
555 -->
556 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
557 <ant antfile="${project.AssigningAuthoritiesToHomeCommunityMappingDAO}/build.xml" inheritall="false" target="clean"/>
558 <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="clean"/>
559 </target>
560 <target depends="init" name="-do-clean">
561 <delete dir="${build.dir}"/>
562 <delete dir="${dist.dir}"/>
563 </target>
564 <target name="-post-clean">
565 <!-- Empty placeholder for easier customization. -->
566 <!-- You can override this target in the ../build.xml file. -->
567 </target>
568 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
569 <target depends="clean" name="clean-ear"/>
570</project>
Note: See TracBrowser for help on using the repository browser.