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 |
|
---|
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="PatientCorrelationEJB-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">
|
---|
115 | The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
|
---|
116 | Either open the project in the IDE and assign the server or setup the server classpath manually.
|
---|
117 | For example like this:
|
---|
118 | ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
|
---|
119 | or ant -Dj2ee.platform.classpath=<server_classpath> (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 "${ant.java.version}"/>
|
---|
221 | <condition property="have-jdk-older-than-1.4">
|
---|
222 | <or>
|
---|
223 | <contains string="${version-output}" substring="java version "1.0"/>
|
---|
224 | <contains string="${version-output}" substring="java version "1.1"/>
|
---|
225 | <contains string="${version-output}" substring="java version "1.2"/>
|
---|
226 | <contains string="${version-output}" substring="java version "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.NhincLib}/build.xml" inheritall="false" target="jar"/>
|
---|
258 | <ant antfile="${project.PatientCorrelationDAO}/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.NhincLib}/build.xml" inheritall="false" target="jar"/>
|
---|
262 | <ant antfile="${project.PatientCorrelationDAO}/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="${file.reference.antlr-2.7.6.jar}" todir="${build.classes.dir}"/>
|
---|
275 | <copy file="${file.reference.asm-attrs.jar}" todir="${build.classes.dir}"/>
|
---|
276 | <copy file="${file.reference.asm.jar}" todir="${build.classes.dir}"/>
|
---|
277 | <copy file="${file.reference.cglib-2.1.3.jar}" todir="${build.classes.dir}"/>
|
---|
278 | <copy file="${file.reference.commons-collections-2.1.1.jar}" todir="${build.classes.dir}"/>
|
---|
279 | <copy file="${file.reference.dom4j-1.6.1.jar}" todir="${build.classes.dir}"/>
|
---|
280 | <copy file="${file.reference.ehcache-1.2.3.jar}" todir="${build.classes.dir}"/>
|
---|
281 | <copy file="${file.reference.hibernate3.jar}" todir="${build.classes.dir}"/>
|
---|
282 | <copy file="${file.reference.jdbc2_0-stdext.jar}" todir="${build.classes.dir}"/>
|
---|
283 | <copy file="${file.reference.jta.jar}" todir="${build.classes.dir}"/>
|
---|
284 | <copy file="${file.reference.c3p0-0.9.1.2.jar}" todir="${build.classes.dir}"/>
|
---|
285 | <copy file="${file.reference.commons-logging-1.1.1.jar}" todir="${build.classes.dir}"/>
|
---|
286 | <copy file="${file.reference.log4j-1.2.15.jar}" todir="${build.classes.dir}"/>
|
---|
287 | <copy file="${file.reference.mysql-connector-java-5.0.8-bin.jar}" todir="${build.classes.dir}"/>
|
---|
288 | <copy file="${reference.PatientCorrelationDAO.jar}" todir="${build.classes.dir}"/>
|
---|
289 | <copy file="${reference.NhincLib.jar}" todir="${build.classes.dir}"/>
|
---|
290 | </target>
|
---|
291 | <target depends="compile" name="library-inclusion-in-manifest">
|
---|
292 | <basename file="${file.reference.antlr-2.7.6.jar}" property="included.lib.file.reference.antlr-2.7.6.jar"/>
|
---|
293 | <copy file="${file.reference.antlr-2.7.6.jar}" todir="${dist.ear.dir}"/>
|
---|
294 | <basename file="${file.reference.asm-attrs.jar}" property="included.lib.file.reference.asm-attrs.jar"/>
|
---|
295 | <copy file="${file.reference.asm-attrs.jar}" todir="${dist.ear.dir}"/>
|
---|
296 | <basename file="${file.reference.asm.jar}" property="included.lib.file.reference.asm.jar"/>
|
---|
297 | <copy file="${file.reference.asm.jar}" todir="${dist.ear.dir}"/>
|
---|
298 | <basename file="${file.reference.cglib-2.1.3.jar}" property="included.lib.file.reference.cglib-2.1.3.jar"/>
|
---|
299 | <copy file="${file.reference.cglib-2.1.3.jar}" todir="${dist.ear.dir}"/>
|
---|
300 | <basename file="${file.reference.commons-collections-2.1.1.jar}" property="included.lib.file.reference.commons-collections-2.1.1.jar"/>
|
---|
301 | <copy file="${file.reference.commons-collections-2.1.1.jar}" todir="${dist.ear.dir}"/>
|
---|
302 | <basename file="${file.reference.dom4j-1.6.1.jar}" property="included.lib.file.reference.dom4j-1.6.1.jar"/>
|
---|
303 | <copy file="${file.reference.dom4j-1.6.1.jar}" todir="${dist.ear.dir}"/>
|
---|
304 | <basename file="${file.reference.ehcache-1.2.3.jar}" property="included.lib.file.reference.ehcache-1.2.3.jar"/>
|
---|
305 | <copy file="${file.reference.ehcache-1.2.3.jar}" todir="${dist.ear.dir}"/>
|
---|
306 | <basename file="${file.reference.hibernate3.jar}" property="included.lib.file.reference.hibernate3.jar"/>
|
---|
307 | <copy file="${file.reference.hibernate3.jar}" todir="${dist.ear.dir}"/>
|
---|
308 | <basename file="${file.reference.jdbc2_0-stdext.jar}" property="included.lib.file.reference.jdbc2_0-stdext.jar"/>
|
---|
309 | <copy file="${file.reference.jdbc2_0-stdext.jar}" todir="${dist.ear.dir}"/>
|
---|
310 | <basename file="${file.reference.jta.jar}" property="included.lib.file.reference.jta.jar"/>
|
---|
311 | <copy file="${file.reference.jta.jar}" todir="${dist.ear.dir}"/>
|
---|
312 | <basename file="${file.reference.c3p0-0.9.1.2.jar}" property="included.lib.file.reference.c3p0-0.9.1.2.jar"/>
|
---|
313 | <copy file="${file.reference.c3p0-0.9.1.2.jar}" todir="${dist.ear.dir}"/>
|
---|
314 | <basename file="${file.reference.commons-logging-1.1.1.jar}" property="included.lib.file.reference.commons-logging-1.1.1.jar"/>
|
---|
315 | <copy file="${file.reference.commons-logging-1.1.1.jar}" todir="${dist.ear.dir}"/>
|
---|
316 | <basename file="${file.reference.log4j-1.2.15.jar}" property="included.lib.file.reference.log4j-1.2.15.jar"/>
|
---|
317 | <copy file="${file.reference.log4j-1.2.15.jar}" todir="${dist.ear.dir}"/>
|
---|
318 | <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"/>
|
---|
319 | <copy file="${file.reference.mysql-connector-java-5.0.8-bin.jar}" todir="${dist.ear.dir}"/>
|
---|
320 | <basename file="${reference.PatientCorrelationDAO.jar}" property="included.lib.reference.PatientCorrelationDAO.jar"/>
|
---|
321 | <copy file="${reference.PatientCorrelationDAO.jar}" todir="${dist.ear.dir}"/>
|
---|
322 | <basename file="${reference.NhincLib.jar}" property="included.lib.reference.NhincLib.jar"/>
|
---|
323 | <copy file="${reference.NhincLib.jar}" todir="${dist.ear.dir}"/>
|
---|
324 | <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
|
---|
325 | <attribute name="Class-Path" value="${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.commons-logging-1.1.1.jar} ${included.lib.file.reference.log4j-1.2.15.jar} ${included.lib.file.reference.mysql-connector-java-5.0.8-bin.jar} ${included.lib.reference.PatientCorrelationDAO.jar} ${included.lib.reference.NhincLib.jar} "/>
|
---|
326 | </manifest>
|
---|
327 | </target>
|
---|
328 | <target name="-copy-meta-inf">
|
---|
329 | <copy todir="${classes.dir}">
|
---|
330 | <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
|
---|
331 | </copy>
|
---|
332 | <copy todir="${classes.dir}/META-INF">
|
---|
333 | <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
|
---|
334 | </copy>
|
---|
335 | </target>
|
---|
336 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf,wsimport-service-compile" if="have.sources" name="-do-compile">
|
---|
337 | <ejbjarproject2:javac destdir="${classes.dir}"/>
|
---|
338 | <copy todir="${classes.dir}">
|
---|
339 | <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
|
---|
340 | </copy>
|
---|
341 | </target>
|
---|
342 | <target name="-post-compile">
|
---|
343 | <!-- Empty placeholder for easier customization. -->
|
---|
344 | <!-- You can override this target in the ../build.xml file. -->
|
---|
345 | </target>
|
---|
346 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
---|
347 | <target name="-pre-compile-single">
|
---|
348 | <!-- Empty placeholder for easier customization. -->
|
---|
349 | <!-- You can override this target in the ../build.xml file. -->
|
---|
350 | </target>
|
---|
351 | <target depends="init,deps-jar,-pre-pre-compile,wsimport-service-compile" name="-do-compile-single">
|
---|
352 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
---|
353 | <ejbjarproject2:javac>
|
---|
354 | <customize>
|
---|
355 | <include name="${javac.includes}"/>
|
---|
356 | </customize>
|
---|
357 | </ejbjarproject2:javac>
|
---|
358 | </target>
|
---|
359 | <target name="-post-compile-single">
|
---|
360 | <!-- Empty placeholder for easier customization. -->
|
---|
361 | <!-- You can override this target in the ../build.xml file. -->
|
---|
362 | </target>
|
---|
363 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
---|
364 | <!--
|
---|
365 | DIST BUILDING SECTION
|
---|
366 | -->
|
---|
367 | <target name="-pre-dist">
|
---|
368 | <!-- Empty placeholder for easier customization. -->
|
---|
369 | <!-- You can override this target in the ../build.xml file. -->
|
---|
370 | </target>
|
---|
371 | <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
|
---|
372 | <dirname file="${dist.jar}" property="dist.jar.dir"/>
|
---|
373 | <mkdir dir="${dist.jar.dir}"/>
|
---|
374 | <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
|
---|
375 | <fileset dir="${build.classes.dir}"/>
|
---|
376 | </jar>
|
---|
377 | </target>
|
---|
378 | <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
|
---|
379 | <dirname file="${dist.jar}" property="dist.jar.dir"/>
|
---|
380 | <mkdir dir="${dist.jar.dir}"/>
|
---|
381 | <jar compress="${jar.compress}" jarfile="${dist.jar}">
|
---|
382 | <fileset dir="${build.classes.dir}"/>
|
---|
383 | </jar>
|
---|
384 | </target>
|
---|
385 | <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
|
---|
386 | <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
|
---|
387 | <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
|
---|
388 | <mkdir dir="${dist.jar.dir}"/>
|
---|
389 | <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
|
---|
390 | <fileset dir="${build.ear.classes.dir}"/>
|
---|
391 | </jar>
|
---|
392 | </target>
|
---|
393 | <target name="-post-dist">
|
---|
394 | <!-- Empty placeholder for easier customization. -->
|
---|
395 | <!-- You can override this target in the ../build.xml file. -->
|
---|
396 | </target>
|
---|
397 | <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
|
---|
398 | <target depends="init,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
|
---|
399 | <!--
|
---|
400 | EXECUTION SECTION
|
---|
401 | -->
|
---|
402 | <target depends="run-deploy" description="Deploy to server." name="run"/>
|
---|
403 | <target name="-init-deploy">
|
---|
404 | <property name="include.jar.manifest" value=""/>
|
---|
405 | </target>
|
---|
406 | <target name="pre-run-deploy">
|
---|
407 | <!-- Empty placeholder for easier customization. -->
|
---|
408 | <!-- You can override this target in the ../build.xml file. -->
|
---|
409 | </target>
|
---|
410 | <target name="post-run-deploy">
|
---|
411 | <!-- Empty placeholder for easier customization. -->
|
---|
412 | <!-- You can override this target in the ../build.xml file. -->
|
---|
413 | </target>
|
---|
414 | <target name="-pre-nbmodule-run-deploy">
|
---|
415 | <!-- Empty placeholder for easier customization. -->
|
---|
416 | <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
|
---|
417 | </target>
|
---|
418 | <target name="-post-nbmodule-run-deploy">
|
---|
419 | <!-- Empty placeholder for easier customization. -->
|
---|
420 | <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
|
---|
421 | </target>
|
---|
422 | <target name="-run-deploy-am">
|
---|
423 | <!-- Task to deploy to the Access Manager runtime. -->
|
---|
424 | </target>
|
---|
425 | <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">
|
---|
426 | <nbjpdaappreloaded/>
|
---|
427 | </target>
|
---|
428 | <target if="netbeans.home" name="-run-deploy-nb">
|
---|
429 | <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
|
---|
430 | </target>
|
---|
431 | <target name="-init-deploy-ant" unless="netbeans.home">
|
---|
432 | <property name="deploy.ant.archive" value="${dist.jar}"/>
|
---|
433 | <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
|
---|
434 | <property name="deploy.ant.enabled" value="true"/>
|
---|
435 | </target>
|
---|
436 | <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
|
---|
437 | <target if="netbeans.home" name="-run-undeploy-nb">
|
---|
438 | <fail message="Undeploy is not supported from within the IDE"/>
|
---|
439 | </target>
|
---|
440 | <target depends="dist" name="verify">
|
---|
441 | <nbverify file="${dist.jar}"/>
|
---|
442 | </target>
|
---|
443 | <target depends="init,compile-single" name="run-main">
|
---|
444 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
---|
445 | <ejbjarproject3:java classname="${run.class}"/>
|
---|
446 | </target>
|
---|
447 | <!--
|
---|
448 | DEBUGGING SECTION
|
---|
449 | -->
|
---|
450 | <target depends="init,compile,dist" description="Debug project in IDE." if="netbeans.home" name="debug">
|
---|
451 | <nbdeploy debugmode="true"/>
|
---|
452 | <antcall target="connect-debugger"/>
|
---|
453 | </target>
|
---|
454 | <target name="connect-debugger" unless="is.debugged">
|
---|
455 | <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
|
---|
456 | <classpath>
|
---|
457 | <path path="${debug.classpath}"/>
|
---|
458 | </classpath>
|
---|
459 | <sourcepath>
|
---|
460 | <path path="${web.docbase.dir}"/>
|
---|
461 | </sourcepath>
|
---|
462 | </nbjpdaconnect>
|
---|
463 | </target>
|
---|
464 | <target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
---|
465 | <ejbjarproject1:nbjpdastart/>
|
---|
466 | </target>
|
---|
467 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
---|
468 | <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
|
---|
469 | <ejbjarproject1:debug/>
|
---|
470 | </target>
|
---|
471 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
|
---|
472 | <target depends="init" name="-pre-debug-fix">
|
---|
473 | <fail unless="fix.includes">Must set fix.includes</fail>
|
---|
474 | <property name="javac.includes" value="${fix.includes}.java"/>
|
---|
475 | </target>
|
---|
476 | <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
---|
477 | <ejbjarproject1:nbjpdareload/>
|
---|
478 | </target>
|
---|
479 | <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
---|
480 | <!--
|
---|
481 | JAVADOC SECTION
|
---|
482 | -->
|
---|
483 | <target depends="init" name="javadoc-build">
|
---|
484 | <mkdir dir="${dist.javadoc.dir}"/>
|
---|
485 | <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}">
|
---|
486 | <classpath>
|
---|
487 | <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
|
---|
488 | </classpath>
|
---|
489 | <sourcepath>
|
---|
490 | <pathelement location="${src.dir}"/>
|
---|
491 | </sourcepath>
|
---|
492 | <packageset dir="${src.dir}" includes="*/**"/>
|
---|
493 | <fileset dir="${src.dir}" includes="*.java"/>
|
---|
494 | </javadoc>
|
---|
495 | </target>
|
---|
496 | <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
|
---|
497 | <nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
---|
498 | </target>
|
---|
499 | <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
|
---|
500 | <!--
|
---|
501 | JUNIT COMPILATION SECTION
|
---|
502 | -->
|
---|
503 | <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
---|
504 | <mkdir dir="${build.test.classes.dir}"/>
|
---|
505 | </target>
|
---|
506 | <target name="-pre-compile-test">
|
---|
507 | <!-- Empty placeholder for easier customization. -->
|
---|
508 | <!-- You can override this target in the ../build.xml file. -->
|
---|
509 | </target>
|
---|
510 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
|
---|
511 | <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
---|
512 | <copy todir="${build.test.classes.dir}">
|
---|
513 | <fileset dir="${test.src.dir}" excludes="**/*.java"/>
|
---|
514 | </copy>
|
---|
515 | </target>
|
---|
516 | <target name="-post-compile-test">
|
---|
517 | <!-- Empty placeholder for easier customization. -->
|
---|
518 | <!-- You can override this target in the ../build.xml file. -->
|
---|
519 | </target>
|
---|
520 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
---|
521 | <target name="-pre-compile-test-single">
|
---|
522 | <!-- Empty placeholder for easier customization. -->
|
---|
523 | <!-- You can override this target in the ../build.xml file. -->
|
---|
524 | </target>
|
---|
525 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
---|
526 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
---|
527 | <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}">
|
---|
528 | <customize>
|
---|
529 | <patternset includes="${javac.includes}"/>
|
---|
530 | </customize>
|
---|
531 | </ejbjarproject2:javac>
|
---|
532 | </target>
|
---|
533 | <target name="-post-compile-test-single">
|
---|
534 | <!-- Empty placeholder for easier customization. -->
|
---|
535 | <!-- You can override this target in the ../build.xml file. -->
|
---|
536 | </target>
|
---|
537 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
|
---|
538 | <!--
|
---|
539 | JUNIT EXECUTION SECTION
|
---|
540 | -->
|
---|
541 | <target depends="init" if="have.tests" name="-pre-test-run">
|
---|
542 | <mkdir dir="${build.test.results.dir}"/>
|
---|
543 | </target>
|
---|
544 | <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
|
---|
545 | <ejbjarproject2:junit/>
|
---|
546 | </target>
|
---|
547 | <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
---|
548 | <fail if="tests.failed">Some tests failed; see details above.</fail>
|
---|
549 | </target>
|
---|
550 | <target depends="init" if="have.tests" name="test-report"/>
|
---|
551 | <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
---|
552 | <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
|
---|
553 | <target depends="init" if="have.tests" name="-pre-test-run-single">
|
---|
554 | <mkdir dir="${build.test.results.dir}"/>
|
---|
555 | </target>
|
---|
556 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
---|
557 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
---|
558 | <ejbjarproject2:junit includes="${test.includes}"/>
|
---|
559 | </target>
|
---|
560 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
---|
561 | <fail if="tests.failed">Some tests failed; see details above.</fail>
|
---|
562 | </target>
|
---|
563 | <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"/>
|
---|
564 | <!--
|
---|
565 | JUNIT DEBUGGING SECTION
|
---|
566 | -->
|
---|
567 | <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
|
---|
568 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
---|
569 | <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
|
---|
570 | <delete file="${test.report.file}"/>
|
---|
571 | <!-- the directory must exist, otherwise the XML formatter would fail -->
|
---|
572 | <mkdir dir="${build.test.results.dir}"/>
|
---|
573 | <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}">
|
---|
574 | <customize>
|
---|
575 | <arg value="showoutput=true"/>
|
---|
576 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
|
---|
577 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
|
---|
578 | </customize>
|
---|
579 | </ejbjarproject1:debug>
|
---|
580 | </target>
|
---|
581 | <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
---|
582 | <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
---|
583 | </target>
|
---|
584 | <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
---|
585 | <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
---|
586 | <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
---|
587 | </target>
|
---|
588 | <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
---|
589 | <!--
|
---|
590 | CLEANUP SECTION
|
---|
591 | -->
|
---|
592 | <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
|
---|
593 | <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="clean"/>
|
---|
594 | <ant antfile="${project.PatientCorrelationDAO}/build.xml" inheritall="false" target="clean"/>
|
---|
595 | </target>
|
---|
596 | <target depends="init" name="-do-clean">
|
---|
597 | <delete dir="${build.dir}"/>
|
---|
598 | <delete dir="${dist.dir}"/>
|
---|
599 | </target>
|
---|
600 | <target name="-post-clean">
|
---|
601 | <!-- Empty placeholder for easier customization. -->
|
---|
602 | <!-- You can override this target in the ../build.xml file. -->
|
---|
603 | </target>
|
---|
604 | <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
|
---|
605 | <target depends="clean" name="clean-ear"/>
|
---|
606 | </project>
|
---|