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