Mercurial > repos > jfb > kinamine7_7
comparison KinaMine-Galaxy-7-7/nbproject/build-impl.xml @ 0:67635b462045 draft
Uploaded
author | jfb |
---|---|
date | Tue, 20 Feb 2018 14:31:15 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:67635b462045 |
---|---|
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 - jar | |
12 - execution | |
13 - debugging | |
14 - javadoc | |
15 - test compilation | |
16 - test execution | |
17 - test debugging | |
18 - applet | |
19 - cleanup | |
20 | |
21 --> | |
22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="KinaMine-impl"> | |
23 <import file="jfx-impl.xml"/> | |
24 <fail message="Please build using Ant 1.8.0 or higher."> | |
25 <condition> | |
26 <not> | |
27 <antversion atleast="1.8.0"/> | |
28 </not> | |
29 </condition> | |
30 </fail> | |
31 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> | |
32 <!-- | |
33 ====================== | |
34 INITIALIZATION SECTION | |
35 ====================== | |
36 --> | |
37 <target name="-pre-init"> | |
38 <!-- Empty placeholder for easier customization. --> | |
39 <!-- You can override this target in the ../build.xml file. --> | |
40 </target> | |
41 <target depends="-pre-init" name="-init-private"> | |
42 <property file="nbproject/private/config.properties"/> | |
43 <property file="nbproject/private/configs/${config}.properties"/> | |
44 <property file="nbproject/private/private.properties"/> | |
45 </target> | |
46 <target depends="-pre-init,-init-private" name="-init-user"> | |
47 <property file="${user.properties.file}"/> | |
48 <!-- The two properties below are usually overridden --> | |
49 <!-- by the active platform. Just a fallback. --> | |
50 <property name="default.javac.source" value="1.6"/> | |
51 <property name="default.javac.target" value="1.6"/> | |
52 </target> | |
53 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> | |
54 <property file="nbproject/configs/${config}.properties"/> | |
55 <property file="nbproject/project.properties"/> | |
56 </target> | |
57 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> | |
58 <property name="platform.java" value="${java.home}/bin/java"/> | |
59 <available file="${manifest.file}" property="manifest.available"/> | |
60 <condition property="splashscreen.available"> | |
61 <and> | |
62 <not> | |
63 <equals arg1="${application.splash}" arg2="" trim="true"/> | |
64 </not> | |
65 <available file="${application.splash}"/> | |
66 </and> | |
67 </condition> | |
68 <condition property="main.class.available"> | |
69 <and> | |
70 <isset property="main.class"/> | |
71 <not> | |
72 <equals arg1="${main.class}" arg2="" trim="true"/> | |
73 </not> | |
74 </and> | |
75 </condition> | |
76 <condition property="profile.available"> | |
77 <and> | |
78 <isset property="javac.profile"/> | |
79 <length length="0" string="${javac.profile}" when="greater"/> | |
80 <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/> | |
81 </and> | |
82 </condition> | |
83 <condition property="do.archive"> | |
84 <or> | |
85 <not> | |
86 <istrue value="${jar.archive.disabled}"/> | |
87 </not> | |
88 <istrue value="${not.archive.disabled}"/> | |
89 </or> | |
90 </condition> | |
91 <condition property="do.mkdist"> | |
92 <and> | |
93 <isset property="do.archive"/> | |
94 <isset property="libs.CopyLibs.classpath"/> | |
95 <not> | |
96 <istrue value="${mkdist.disabled}"/> | |
97 </not> | |
98 </and> | |
99 </condition> | |
100 <condition property="do.archive+manifest.available"> | |
101 <and> | |
102 <isset property="manifest.available"/> | |
103 <istrue value="${do.archive}"/> | |
104 </and> | |
105 </condition> | |
106 <condition property="do.archive+main.class.available"> | |
107 <and> | |
108 <isset property="main.class.available"/> | |
109 <istrue value="${do.archive}"/> | |
110 </and> | |
111 </condition> | |
112 <condition property="do.archive+splashscreen.available"> | |
113 <and> | |
114 <isset property="splashscreen.available"/> | |
115 <istrue value="${do.archive}"/> | |
116 </and> | |
117 </condition> | |
118 <condition property="do.archive+profile.available"> | |
119 <and> | |
120 <isset property="profile.available"/> | |
121 <istrue value="${do.archive}"/> | |
122 </and> | |
123 </condition> | |
124 <condition property="have.tests"> | |
125 <or> | |
126 <available file="${test.src.dir}"/> | |
127 </or> | |
128 </condition> | |
129 <condition property="have.sources"> | |
130 <or> | |
131 <available file="${src.dir}"/> | |
132 </or> | |
133 </condition> | |
134 <condition property="netbeans.home+have.tests"> | |
135 <and> | |
136 <isset property="netbeans.home"/> | |
137 <isset property="have.tests"/> | |
138 </and> | |
139 </condition> | |
140 <condition property="no.javadoc.preview"> | |
141 <and> | |
142 <isset property="javadoc.preview"/> | |
143 <isfalse value="${javadoc.preview}"/> | |
144 </and> | |
145 </condition> | |
146 <property name="run.jvmargs" value=""/> | |
147 <property name="run.jvmargs.ide" value=""/> | |
148 <property name="javac.compilerargs" value=""/> | |
149 <property name="work.dir" value="${basedir}"/> | |
150 <condition property="no.deps"> | |
151 <and> | |
152 <istrue value="${no.dependencies}"/> | |
153 </and> | |
154 </condition> | |
155 <property name="javac.debug" value="true"/> | |
156 <property name="javadoc.preview" value="true"/> | |
157 <property name="application.args" value=""/> | |
158 <property name="source.encoding" value="${file.encoding}"/> | |
159 <property name="runtime.encoding" value="${source.encoding}"/> | |
160 <property name="manifest.encoding" value="${source.encoding}"/> | |
161 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | |
162 <and> | |
163 <isset property="javadoc.encoding"/> | |
164 <not> | |
165 <equals arg1="${javadoc.encoding}" arg2=""/> | |
166 </not> | |
167 </and> | |
168 </condition> | |
169 <property name="javadoc.encoding.used" value="${source.encoding}"/> | |
170 <property name="includes" value="**"/> | |
171 <property name="excludes" value=""/> | |
172 <property name="do.depend" value="false"/> | |
173 <condition property="do.depend.true"> | |
174 <istrue value="${do.depend}"/> | |
175 </condition> | |
176 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> | |
177 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> | |
178 <and> | |
179 <isset property="endorsed.classpath"/> | |
180 <not> | |
181 <equals arg1="${endorsed.classpath}" arg2="" trim="true"/> | |
182 </not> | |
183 </and> | |
184 </condition> | |
185 <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}"> | |
186 <isset property="profile.available"/> | |
187 </condition> | |
188 <condition else="false" property="jdkBug6558476"> | |
189 <and> | |
190 <matches pattern="1\.[56]" string="${java.specification.version}"/> | |
191 <not> | |
192 <os family="unix"/> | |
193 </not> | |
194 </and> | |
195 </condition> | |
196 <condition else="false" property="javac.fork"> | |
197 <or> | |
198 <istrue value="${jdkBug6558476}"/> | |
199 <istrue value="${javac.external.vm}"/> | |
200 </or> | |
201 </condition> | |
202 <property name="jar.index" value="false"/> | |
203 <property name="jar.index.metainf" value="${jar.index}"/> | |
204 <property name="copylibs.rebase" value="true"/> | |
205 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> | |
206 <condition property="junit.available"> | |
207 <or> | |
208 <available classname="org.junit.Test" classpath="${run.test.classpath}"/> | |
209 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/> | |
210 </or> | |
211 </condition> | |
212 <condition property="testng.available"> | |
213 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/> | |
214 </condition> | |
215 <condition property="junit+testng.available"> | |
216 <and> | |
217 <istrue value="${junit.available}"/> | |
218 <istrue value="${testng.available}"/> | |
219 </and> | |
220 </condition> | |
221 <condition else="testng" property="testng.mode" value="mixed"> | |
222 <istrue value="${junit+testng.available}"/> | |
223 </condition> | |
224 <condition else="" property="testng.debug.mode" value="-mixed"> | |
225 <istrue value="${junit+testng.available}"/> | |
226 </condition> | |
227 <property name="java.failonerror" value="true"/> | |
228 </target> | |
229 <target name="-post-init"> | |
230 <!-- Empty placeholder for easier customization. --> | |
231 <!-- You can override this target in the ../build.xml file. --> | |
232 </target> | |
233 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> | |
234 <fail unless="src.dir">Must set src.dir</fail> | |
235 <fail unless="test.src.dir">Must set test.src.dir</fail> | |
236 <fail unless="build.dir">Must set build.dir</fail> | |
237 <fail unless="dist.dir">Must set dist.dir</fail> | |
238 <fail unless="build.classes.dir">Must set build.classes.dir</fail> | |
239 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> | |
240 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> | |
241 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> | |
242 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> | |
243 <fail unless="dist.jar">Must set dist.jar</fail> | |
244 </target> | |
245 <target name="-init-macrodef-property"> | |
246 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
247 <attribute name="name"/> | |
248 <attribute name="value"/> | |
249 <sequential> | |
250 <property name="@{name}" value="${@{value}}"/> | |
251 </sequential> | |
252 </macrodef> | |
253 </target> | |
254 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> | |
255 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
256 <attribute default="${src.dir}" name="srcdir"/> | |
257 <attribute default="${build.classes.dir}" name="destdir"/> | |
258 <attribute default="${javac.classpath}" name="classpath"/> | |
259 <attribute default="${javac.processorpath}" name="processorpath"/> | |
260 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
261 <attribute default="${includes}" name="includes"/> | |
262 <attribute default="${excludes}" name="excludes"/> | |
263 <attribute default="${javac.debug}" name="debug"/> | |
264 <attribute default="${empty.dir}" name="sourcepath"/> | |
265 <attribute default="${empty.dir}" name="gensrcdir"/> | |
266 <element name="customize" optional="true"/> | |
267 <sequential> | |
268 <property location="${build.dir}/empty" name="empty.dir"/> | |
269 <mkdir dir="${empty.dir}"/> | |
270 <mkdir dir="@{apgeneratedsrcdir}"/> | |
271 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
272 <src> | |
273 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
274 <include name="*"/> | |
275 </dirset> | |
276 </src> | |
277 <classpath> | |
278 <path path="@{classpath}"/> | |
279 </classpath> | |
280 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
281 <compilerarg line="${javac.profile.cmd.line.arg}"/> | |
282 <compilerarg line="${javac.compilerargs}"/> | |
283 <compilerarg value="-processorpath"/> | |
284 <compilerarg path="@{processorpath}:${empty.dir}"/> | |
285 <compilerarg line="${ap.processors.internal}"/> | |
286 <compilerarg line="${annotation.processing.processor.options}"/> | |
287 <compilerarg value="-s"/> | |
288 <compilerarg path="@{apgeneratedsrcdir}"/> | |
289 <compilerarg line="${ap.proc.none.internal}"/> | |
290 <customize/> | |
291 </javac> | |
292 </sequential> | |
293 </macrodef> | |
294 </target> | |
295 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> | |
296 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
297 <attribute default="${src.dir}" name="srcdir"/> | |
298 <attribute default="${build.classes.dir}" name="destdir"/> | |
299 <attribute default="${javac.classpath}" name="classpath"/> | |
300 <attribute default="${javac.processorpath}" name="processorpath"/> | |
301 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
302 <attribute default="${includes}" name="includes"/> | |
303 <attribute default="${excludes}" name="excludes"/> | |
304 <attribute default="${javac.debug}" name="debug"/> | |
305 <attribute default="${empty.dir}" name="sourcepath"/> | |
306 <attribute default="${empty.dir}" name="gensrcdir"/> | |
307 <element name="customize" optional="true"/> | |
308 <sequential> | |
309 <property location="${build.dir}/empty" name="empty.dir"/> | |
310 <mkdir dir="${empty.dir}"/> | |
311 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
312 <src> | |
313 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
314 <include name="*"/> | |
315 </dirset> | |
316 </src> | |
317 <classpath> | |
318 <path path="@{classpath}"/> | |
319 </classpath> | |
320 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
321 <compilerarg line="${javac.profile.cmd.line.arg}"/> | |
322 <compilerarg line="${javac.compilerargs}"/> | |
323 <customize/> | |
324 </javac> | |
325 </sequential> | |
326 </macrodef> | |
327 </target> | |
328 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> | |
329 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
330 <attribute default="${src.dir}" name="srcdir"/> | |
331 <attribute default="${build.classes.dir}" name="destdir"/> | |
332 <attribute default="${javac.classpath}" name="classpath"/> | |
333 <sequential> | |
334 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> | |
335 <classpath> | |
336 <path path="@{classpath}"/> | |
337 </classpath> | |
338 </depend> | |
339 </sequential> | |
340 </macrodef> | |
341 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
342 <attribute default="${build.classes.dir}" name="destdir"/> | |
343 <sequential> | |
344 <fail unless="javac.includes">Must set javac.includes</fail> | |
345 <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> | |
346 <path> | |
347 <filelist dir="@{destdir}" files="${javac.includes}"/> | |
348 </path> | |
349 <globmapper from="*.java" to="*.class"/> | |
350 </pathconvert> | |
351 <tempfile deleteonexit="true" property="javac.includesfile.binary"/> | |
352 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> | |
353 <delete> | |
354 <files includesfile="${javac.includesfile.binary}"/> | |
355 </delete> | |
356 <delete> | |
357 <fileset file="${javac.includesfile.binary}"/> | |
358 </delete> | |
359 </sequential> | |
360 </macrodef> | |
361 </target> | |
362 <target if="${junit.available}" name="-init-macrodef-junit-init"> | |
363 <condition else="false" property="nb.junit.batch" value="true"> | |
364 <and> | |
365 <istrue value="${junit.available}"/> | |
366 <not> | |
367 <isset property="test.method"/> | |
368 </not> | |
369 </and> | |
370 </condition> | |
371 <condition else="false" property="nb.junit.single" value="true"> | |
372 <and> | |
373 <istrue value="${junit.available}"/> | |
374 <isset property="test.method"/> | |
375 </and> | |
376 </condition> | |
377 </target> | |
378 <target name="-init-test-properties"> | |
379 <property name="test.binaryincludes" value="<nothing>"/> | |
380 <property name="test.binarytestincludes" value=""/> | |
381 <property name="test.binaryexcludes" value=""/> | |
382 </target> | |
383 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}"> | |
384 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
385 <attribute default="${includes}" name="includes"/> | |
386 <attribute default="${excludes}" name="excludes"/> | |
387 <attribute default="**" name="testincludes"/> | |
388 <attribute default="" name="testmethods"/> | |
389 <element name="customize" optional="true"/> | |
390 <sequential> | |
391 <property name="junit.forkmode" value="perTest"/> | |
392 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
393 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> | |
394 <syspropertyset> | |
395 <propertyref prefix="test-sys-prop."/> | |
396 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
397 </syspropertyset> | |
398 <formatter type="brief" usefile="false"/> | |
399 <formatter type="xml"/> | |
400 <jvmarg value="-ea"/> | |
401 <customize/> | |
402 </junit> | |
403 </sequential> | |
404 </macrodef> | |
405 </target> | |
406 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}"> | |
407 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
408 <attribute default="${includes}" name="includes"/> | |
409 <attribute default="${excludes}" name="excludes"/> | |
410 <attribute default="**" name="testincludes"/> | |
411 <attribute default="" name="testmethods"/> | |
412 <element name="customize" optional="true"/> | |
413 <sequential> | |
414 <property name="junit.forkmode" value="perTest"/> | |
415 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
416 <batchtest todir="${build.test.results.dir}"> | |
417 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | |
418 <filename name="@{testincludes}"/> | |
419 </fileset> | |
420 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}"> | |
421 <filename name="${test.binarytestincludes}"/> | |
422 </fileset> | |
423 </batchtest> | |
424 <syspropertyset> | |
425 <propertyref prefix="test-sys-prop."/> | |
426 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
427 </syspropertyset> | |
428 <formatter type="brief" usefile="false"/> | |
429 <formatter type="xml"/> | |
430 <jvmarg value="-ea"/> | |
431 <customize/> | |
432 </junit> | |
433 </sequential> | |
434 </macrodef> | |
435 </target> | |
436 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/> | |
437 <target if="${testng.available}" name="-init-macrodef-testng"> | |
438 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
439 <attribute default="${includes}" name="includes"/> | |
440 <attribute default="${excludes}" name="excludes"/> | |
441 <attribute default="**" name="testincludes"/> | |
442 <attribute default="" name="testmethods"/> | |
443 <element name="customize" optional="true"/> | |
444 <sequential> | |
445 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}"> | |
446 <isset property="test.method"/> | |
447 </condition> | |
448 <union id="test.set"> | |
449 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}"> | |
450 <filename name="@{testincludes}"/> | |
451 </fileset> | |
452 </union> | |
453 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> | |
454 <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="KinaMine" testname="TestNG tests" workingDir="${work.dir}"> | |
455 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> | |
456 <propertyset> | |
457 <propertyref prefix="test-sys-prop."/> | |
458 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
459 </propertyset> | |
460 <customize/> | |
461 </testng> | |
462 </sequential> | |
463 </macrodef> | |
464 </target> | |
465 <target name="-init-macrodef-test-impl"> | |
466 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
467 <attribute default="${includes}" name="includes"/> | |
468 <attribute default="${excludes}" name="excludes"/> | |
469 <attribute default="**" name="testincludes"/> | |
470 <attribute default="" name="testmethods"/> | |
471 <element implicit="true" name="customize" optional="true"/> | |
472 <sequential> | |
473 <echo>No tests executed.</echo> | |
474 </sequential> | |
475 </macrodef> | |
476 </target> | |
477 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl"> | |
478 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
479 <attribute default="${includes}" name="includes"/> | |
480 <attribute default="${excludes}" name="excludes"/> | |
481 <attribute default="**" name="testincludes"/> | |
482 <attribute default="" name="testmethods"/> | |
483 <element implicit="true" name="customize" optional="true"/> | |
484 <sequential> | |
485 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
486 <customize/> | |
487 </j2seproject3:junit> | |
488 </sequential> | |
489 </macrodef> | |
490 </target> | |
491 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl"> | |
492 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
493 <attribute default="${includes}" name="includes"/> | |
494 <attribute default="${excludes}" name="excludes"/> | |
495 <attribute default="**" name="testincludes"/> | |
496 <attribute default="" name="testmethods"/> | |
497 <element implicit="true" name="customize" optional="true"/> | |
498 <sequential> | |
499 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
500 <customize/> | |
501 </j2seproject3:testng> | |
502 </sequential> | |
503 </macrodef> | |
504 </target> | |
505 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test"> | |
506 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
507 <attribute default="${includes}" name="includes"/> | |
508 <attribute default="${excludes}" name="excludes"/> | |
509 <attribute default="**" name="testincludes"/> | |
510 <attribute default="" name="testmethods"/> | |
511 <sequential> | |
512 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
513 <customize> | |
514 <classpath> | |
515 <path path="${run.test.classpath}"/> | |
516 </classpath> | |
517 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
518 <jvmarg line="${run.jvmargs}"/> | |
519 <jvmarg line="${run.jvmargs.ide}"/> | |
520 </customize> | |
521 </j2seproject3:test-impl> | |
522 </sequential> | |
523 </macrodef> | |
524 </target> | |
525 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}"> | |
526 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
527 <attribute default="${includes}" name="includes"/> | |
528 <attribute default="${excludes}" name="excludes"/> | |
529 <attribute default="**" name="testincludes"/> | |
530 <attribute default="" name="testmethods"/> | |
531 <element name="customize" optional="true"/> | |
532 <sequential> | |
533 <property name="junit.forkmode" value="perTest"/> | |
534 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
535 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> | |
536 <syspropertyset> | |
537 <propertyref prefix="test-sys-prop."/> | |
538 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
539 </syspropertyset> | |
540 <formatter type="brief" usefile="false"/> | |
541 <formatter type="xml"/> | |
542 <jvmarg value="-ea"/> | |
543 <jvmarg line="${debug-args-line}"/> | |
544 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
545 <customize/> | |
546 </junit> | |
547 </sequential> | |
548 </macrodef> | |
549 </target> | |
550 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch"> | |
551 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
552 <attribute default="${includes}" name="includes"/> | |
553 <attribute default="${excludes}" name="excludes"/> | |
554 <attribute default="**" name="testincludes"/> | |
555 <attribute default="" name="testmethods"/> | |
556 <element name="customize" optional="true"/> | |
557 <sequential> | |
558 <property name="junit.forkmode" value="perTest"/> | |
559 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
560 <batchtest todir="${build.test.results.dir}"> | |
561 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | |
562 <filename name="@{testincludes}"/> | |
563 </fileset> | |
564 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}"> | |
565 <filename name="${test.binarytestincludes}"/> | |
566 </fileset> | |
567 </batchtest> | |
568 <syspropertyset> | |
569 <propertyref prefix="test-sys-prop."/> | |
570 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
571 </syspropertyset> | |
572 <formatter type="brief" usefile="false"/> | |
573 <formatter type="xml"/> | |
574 <jvmarg value="-ea"/> | |
575 <jvmarg line="${debug-args-line}"/> | |
576 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
577 <customize/> | |
578 </junit> | |
579 </sequential> | |
580 </macrodef> | |
581 </target> | |
582 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl"> | |
583 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
584 <attribute default="${includes}" name="includes"/> | |
585 <attribute default="${excludes}" name="excludes"/> | |
586 <attribute default="**" name="testincludes"/> | |
587 <attribute default="" name="testmethods"/> | |
588 <element implicit="true" name="customize" optional="true"/> | |
589 <sequential> | |
590 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
591 <customize/> | |
592 </j2seproject3:junit-debug> | |
593 </sequential> | |
594 </macrodef> | |
595 </target> | |
596 <target if="${testng.available}" name="-init-macrodef-testng-debug"> | |
597 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
598 <attribute default="${main.class}" name="testClass"/> | |
599 <attribute default="" name="testMethod"/> | |
600 <element name="customize2" optional="true"/> | |
601 <sequential> | |
602 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}"> | |
603 <isset property="test.method"/> | |
604 </condition> | |
605 <condition else="-suitename KinaMine -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}"> | |
606 <matches pattern=".*\.xml" string="@{testClass}"/> | |
607 </condition> | |
608 <delete dir="${build.test.results.dir}" quiet="true"/> | |
609 <mkdir dir="${build.test.results.dir}"/> | |
610 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}"> | |
611 <customize> | |
612 <customize2/> | |
613 <jvmarg value="-ea"/> | |
614 <arg line="${testng.debug.mode}"/> | |
615 <arg line="-d ${build.test.results.dir}"/> | |
616 <arg line="-listener org.testng.reporters.VerboseReporter"/> | |
617 <arg line="${testng.cmd.args}"/> | |
618 </customize> | |
619 </j2seproject3:debug> | |
620 </sequential> | |
621 </macrodef> | |
622 </target> | |
623 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl"> | |
624 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
625 <attribute default="${main.class}" name="testClass"/> | |
626 <attribute default="" name="testMethod"/> | |
627 <element implicit="true" name="customize2" optional="true"/> | |
628 <sequential> | |
629 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}"> | |
630 <customize2/> | |
631 </j2seproject3:testng-debug> | |
632 </sequential> | |
633 </macrodef> | |
634 </target> | |
635 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit"> | |
636 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
637 <attribute default="${includes}" name="includes"/> | |
638 <attribute default="${excludes}" name="excludes"/> | |
639 <attribute default="**" name="testincludes"/> | |
640 <attribute default="" name="testmethods"/> | |
641 <attribute default="${main.class}" name="testClass"/> | |
642 <attribute default="" name="testMethod"/> | |
643 <sequential> | |
644 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
645 <customize> | |
646 <classpath> | |
647 <path path="${run.test.classpath}"/> | |
648 </classpath> | |
649 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
650 <jvmarg line="${run.jvmargs}"/> | |
651 <jvmarg line="${run.jvmargs.ide}"/> | |
652 </customize> | |
653 </j2seproject3:test-debug-impl> | |
654 </sequential> | |
655 </macrodef> | |
656 </target> | |
657 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng"> | |
658 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
659 <attribute default="${includes}" name="includes"/> | |
660 <attribute default="${excludes}" name="excludes"/> | |
661 <attribute default="**" name="testincludes"/> | |
662 <attribute default="" name="testmethods"/> | |
663 <attribute default="${main.class}" name="testClass"/> | |
664 <attribute default="" name="testMethod"/> | |
665 <sequential> | |
666 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}"> | |
667 <customize2> | |
668 <syspropertyset> | |
669 <propertyref prefix="test-sys-prop."/> | |
670 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
671 </syspropertyset> | |
672 </customize2> | |
673 </j2seproject3:testng-debug-impl> | |
674 </sequential> | |
675 </macrodef> | |
676 </target> | |
677 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/> | |
678 <!-- | |
679 pre NB7.2 profiling section; consider it deprecated | |
680 --> | |
681 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/> | |
682 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init"> | |
683 <!-- Empty placeholder for easier customization. --> | |
684 <!-- You can override this target in the ../build.xml file. --> | |
685 </target> | |
686 <target if="profiler.info.jvmargs.agent" name="-profile-post-init"> | |
687 <!-- Empty placeholder for easier customization. --> | |
688 <!-- You can override this target in the ../build.xml file. --> | |
689 </target> | |
690 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile"> | |
691 <macrodef name="resolve"> | |
692 <attribute name="name"/> | |
693 <attribute name="value"/> | |
694 <sequential> | |
695 <property name="@{name}" value="${env.@{value}}"/> | |
696 </sequential> | |
697 </macrodef> | |
698 <macrodef name="profile"> | |
699 <attribute default="${main.class}" name="classname"/> | |
700 <element name="customize" optional="true"/> | |
701 <sequential> | |
702 <property environment="env"/> | |
703 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> | |
704 <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}"> | |
705 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
706 <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
707 <jvmarg line="${profiler.info.jvmargs}"/> | |
708 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
709 <arg line="${application.args}"/> | |
710 <classpath> | |
711 <path path="${run.classpath}"/> | |
712 </classpath> | |
713 <syspropertyset> | |
714 <propertyref prefix="run-sys-prop."/> | |
715 <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
716 </syspropertyset> | |
717 <customize/> | |
718 </java> | |
719 </sequential> | |
720 </macrodef> | |
721 </target> | |
722 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check"> | |
723 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> | |
724 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> | |
725 </target> | |
726 <!-- | |
727 end of pre NB7.2 profiling section | |
728 --> | |
729 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> | |
730 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
731 <attribute default="${main.class}" name="name"/> | |
732 <attribute default="${debug.classpath}" name="classpath"/> | |
733 <attribute default="" name="stopclassname"/> | |
734 <sequential> | |
735 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> | |
736 <classpath> | |
737 <path path="@{classpath}"/> | |
738 </classpath> | |
739 </nbjpdastart> | |
740 </sequential> | |
741 </macrodef> | |
742 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
743 <attribute default="${build.classes.dir}" name="dir"/> | |
744 <sequential> | |
745 <nbjpdareload> | |
746 <fileset dir="@{dir}" includes="${fix.classes}"> | |
747 <include name="${fix.includes}*.class"/> | |
748 </fileset> | |
749 </nbjpdareload> | |
750 </sequential> | |
751 </macrodef> | |
752 </target> | |
753 <target name="-init-debug-args"> | |
754 <property name="version-output" value="java version "${ant.java.version}"/> | |
755 <condition property="have-jdk-older-than-1.4"> | |
756 <or> | |
757 <contains string="${version-output}" substring="java version "1.0"/> | |
758 <contains string="${version-output}" substring="java version "1.1"/> | |
759 <contains string="${version-output}" substring="java version "1.2"/> | |
760 <contains string="${version-output}" substring="java version "1.3"/> | |
761 </or> | |
762 </condition> | |
763 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> | |
764 <istrue value="${have-jdk-older-than-1.4}"/> | |
765 </condition> | |
766 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> | |
767 <os family="windows"/> | |
768 </condition> | |
769 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> | |
770 <isset property="debug.transport"/> | |
771 </condition> | |
772 </target> | |
773 <target depends="-init-debug-args" name="-init-macrodef-debug"> | |
774 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
775 <attribute default="${main.class}" name="classname"/> | |
776 <attribute default="${debug.classpath}" name="classpath"/> | |
777 <element name="customize" optional="true"/> | |
778 <sequential> | |
779 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> | |
780 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
781 <jvmarg line="${debug-args-line}"/> | |
782 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
783 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
784 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
785 <jvmarg line="${run.jvmargs}"/> | |
786 <jvmarg line="${run.jvmargs.ide}"/> | |
787 <classpath> | |
788 <path path="@{classpath}"/> | |
789 </classpath> | |
790 <syspropertyset> | |
791 <propertyref prefix="run-sys-prop."/> | |
792 <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
793 </syspropertyset> | |
794 <customize/> | |
795 </java> | |
796 </sequential> | |
797 </macrodef> | |
798 </target> | |
799 <target name="-init-macrodef-java"> | |
800 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
801 <attribute default="${main.class}" name="classname"/> | |
802 <attribute default="${run.classpath}" name="classpath"/> | |
803 <attribute default="jvm" name="jvm"/> | |
804 <element name="customize" optional="true"/> | |
805 <sequential> | |
806 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> | |
807 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
808 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
809 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
810 <jvmarg line="${run.jvmargs}"/> | |
811 <jvmarg line="${run.jvmargs.ide}"/> | |
812 <classpath> | |
813 <path path="@{classpath}"/> | |
814 </classpath> | |
815 <syspropertyset> | |
816 <propertyref prefix="run-sys-prop."/> | |
817 <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
818 </syspropertyset> | |
819 <customize/> | |
820 </java> | |
821 </sequential> | |
822 </macrodef> | |
823 </target> | |
824 <target name="-init-macrodef-copylibs"> | |
825 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
826 <attribute default="${manifest.file}" name="manifest"/> | |
827 <element name="customize" optional="true"/> | |
828 <sequential> | |
829 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
830 <pathconvert property="run.classpath.without.build.classes.dir"> | |
831 <path path="${run.classpath}"/> | |
832 <map from="${build.classes.dir.resolved}" to=""/> | |
833 </pathconvert> | |
834 <pathconvert pathsep=" " property="jar.classpath"> | |
835 <path path="${run.classpath.without.build.classes.dir}"/> | |
836 <chainedmapper> | |
837 <flattenmapper/> | |
838 <filtermapper> | |
839 <replacestring from=" " to="%20"/> | |
840 </filtermapper> | |
841 <globmapper from="*" to="lib/*"/> | |
842 </chainedmapper> | |
843 </pathconvert> | |
844 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | |
845 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | |
846 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> | |
847 <manifest> | |
848 <attribute name="Class-Path" value="${jar.classpath}"/> | |
849 <customize/> | |
850 </manifest> | |
851 </copylibs> | |
852 </sequential> | |
853 </macrodef> | |
854 </target> | |
855 <target name="-init-presetdef-jar"> | |
856 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
857 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8"> | |
858 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> | |
859 </jar> | |
860 </presetdef> | |
861 </target> | |
862 <target name="-init-ap-cmdline-properties"> | |
863 <property name="annotation.processing.enabled" value="true"/> | |
864 <property name="annotation.processing.processors.list" value=""/> | |
865 <property name="annotation.processing.processor.options" value=""/> | |
866 <property name="annotation.processing.run.all.processors" value="true"/> | |
867 <property name="javac.processorpath" value="${javac.classpath}"/> | |
868 <property name="javac.test.processorpath" value="${javac.test.classpath}"/> | |
869 <condition property="ap.supported.internal" value="true"> | |
870 <not> | |
871 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> | |
872 </not> | |
873 </condition> | |
874 </target> | |
875 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> | |
876 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> | |
877 <isfalse value="${annotation.processing.run.all.processors}"/> | |
878 </condition> | |
879 <condition else="" property="ap.proc.none.internal" value="-proc:none"> | |
880 <isfalse value="${annotation.processing.enabled}"/> | |
881 </condition> | |
882 </target> | |
883 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> | |
884 <property name="ap.cmd.line.internal" value=""/> | |
885 </target> | |
886 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/> | |
887 <!-- | |
888 =================== | |
889 COMPILATION SECTION | |
890 =================== | |
891 --> | |
892 <target name="-deps-jar-init" unless="built-jar.properties"> | |
893 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> | |
894 <delete file="${built-jar.properties}" quiet="true"/> | |
895 </target> | |
896 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> | |
897 <echo level="warn" message="Cycle detected: KinaMine was already built"/> | |
898 </target> | |
899 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> | |
900 <mkdir dir="${build.dir}"/> | |
901 <touch file="${built-jar.properties}" verbose="false"/> | |
902 <property file="${built-jar.properties}" prefix="already.built.jar."/> | |
903 <antcall target="-warn-already-built-jar"/> | |
904 <propertyfile file="${built-jar.properties}"> | |
905 <entry key="${basedir}" value=""/> | |
906 </propertyfile> | |
907 </target> | |
908 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | |
909 <target depends="init" name="-check-automatic-build"> | |
910 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> | |
911 </target> | |
912 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> | |
913 <antcall target="clean"/> | |
914 </target> | |
915 <target depends="init,deps-jar" name="-pre-pre-compile"> | |
916 <mkdir dir="${build.classes.dir}"/> | |
917 </target> | |
918 <target name="-pre-compile"> | |
919 <!-- Empty placeholder for easier customization. --> | |
920 <!-- You can override this target in the ../build.xml file. --> | |
921 </target> | |
922 <target if="do.depend.true" name="-compile-depend"> | |
923 <pathconvert property="build.generated.subdirs"> | |
924 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
925 <include name="*"/> | |
926 </dirset> | |
927 </pathconvert> | |
928 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> | |
929 </target> | |
930 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> | |
931 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> | |
932 <copy todir="${build.classes.dir}"> | |
933 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
934 </copy> | |
935 </target> | |
936 <target if="has.persistence.xml" name="-copy-persistence-xml"> | |
937 <mkdir dir="${build.classes.dir}/META-INF"/> | |
938 <copy todir="${build.classes.dir}/META-INF"> | |
939 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/> | |
940 </copy> | |
941 </target> | |
942 <target name="-post-compile"> | |
943 <!-- Empty placeholder for easier customization. --> | |
944 <!-- You can override this target in the ../build.xml file. --> | |
945 </target> | |
946 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | |
947 <target name="-pre-compile-single"> | |
948 <!-- Empty placeholder for easier customization. --> | |
949 <!-- You can override this target in the ../build.xml file. --> | |
950 </target> | |
951 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> | |
952 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
953 <j2seproject3:force-recompile/> | |
954 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> | |
955 </target> | |
956 <target name="-post-compile-single"> | |
957 <!-- Empty placeholder for easier customization. --> | |
958 <!-- You can override this target in the ../build.xml file. --> | |
959 </target> | |
960 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> | |
961 <!-- | |
962 ==================== | |
963 JAR BUILDING SECTION | |
964 ==================== | |
965 --> | |
966 <target depends="init" name="-pre-pre-jar"> | |
967 <dirname file="${dist.jar}" property="dist.jar.dir"/> | |
968 <mkdir dir="${dist.jar.dir}"/> | |
969 </target> | |
970 <target name="-pre-jar"> | |
971 <!-- Empty placeholder for easier customization. --> | |
972 <!-- You can override this target in the ../build.xml file. --> | |
973 </target> | |
974 <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available"> | |
975 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
976 <touch file="${tmp.manifest.file}" verbose="false"/> | |
977 </target> | |
978 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> | |
979 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
980 <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/> | |
981 </target> | |
982 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> | |
983 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> | |
984 <attribute name="Main-Class" value="${main.class}"/> | |
985 </manifest> | |
986 </target> | |
987 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> | |
988 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> | |
989 <attribute name="Profile" value="${javac.profile}"/> | |
990 </manifest> | |
991 </target> | |
992 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen"> | |
993 <basename file="${application.splash}" property="splashscreen.basename"/> | |
994 <mkdir dir="${build.classes.dir}/META-INF"/> | |
995 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> | |
996 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> | |
997 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> | |
998 </manifest> | |
999 </target> | |
1000 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs"> | |
1001 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> | |
1002 <echo level="info">To run this application from the command line without Ant, try:</echo> | |
1003 <property location="${dist.jar}" name="dist.jar.resolved"/> | |
1004 <echo level="info">java -jar "${dist.jar.resolved}"</echo> | |
1005 </target> | |
1006 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist"> | |
1007 <j2seproject1:jar manifest="${tmp.manifest.file}"/> | |
1008 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
1009 <property location="${dist.jar}" name="dist.jar.resolved"/> | |
1010 <pathconvert property="run.classpath.with.dist.jar"> | |
1011 <path path="${run.classpath}"/> | |
1012 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | |
1013 </pathconvert> | |
1014 <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}"> | |
1015 <isset property="main.class.available"/> | |
1016 </condition> | |
1017 <condition else="debug" property="jar.usage.level" value="info"> | |
1018 <isset property="main.class.available"/> | |
1019 </condition> | |
1020 <echo level="${jar.usage.level}" message="${jar.usage.message}"/> | |
1021 </target> | |
1022 <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest"> | |
1023 <delete> | |
1024 <fileset file="${tmp.manifest.file}"/> | |
1025 </delete> | |
1026 </target> | |
1027 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/> | |
1028 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/> | |
1029 <target depends="-jfx-copylibs,-rebase-libs,jfx-deployment" name="-post-jar"> | |
1030 <!-- Empty placeholder for easier customization. --> | |
1031 <!-- You can override this target in the ../build.xml file. --> | |
1032 </target> | |
1033 <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/> | |
1034 <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/> | |
1035 <!-- | |
1036 ================= | |
1037 EXECUTION SECTION | |
1038 ================= | |
1039 --> | |
1040 <target depends="init,compile,jar" description="Run a main class." name="run"> | |
1041 <j2seproject1:java> | |
1042 <customize> | |
1043 <arg line="${application.args}"/> | |
1044 </customize> | |
1045 </j2seproject1:java> | |
1046 </target> | |
1047 <target name="-do-not-recompile"> | |
1048 <property name="javac.includes.binary" value=""/> | |
1049 </target> | |
1050 <target depends="init,compile-single" name="run-single"> | |
1051 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1052 <j2seproject1:java classname="${run.class}"/> | |
1053 </target> | |
1054 <target depends="init,compile-test-single" name="run-test-with-main"> | |
1055 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1056 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> | |
1057 </target> | |
1058 <!-- | |
1059 ================= | |
1060 DEBUGGING SECTION | |
1061 ================= | |
1062 --> | |
1063 <target depends="init" if="netbeans.home" name="-debug-start-debugger"> | |
1064 <j2seproject1:nbjpdastart name="${debug.class}"/> | |
1065 </target> | |
1066 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> | |
1067 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> | |
1068 </target> | |
1069 <target depends="init,compile" name="-debug-start-debuggee"> | |
1070 <j2seproject3:debug> | |
1071 <customize> | |
1072 <arg line="${application.args}"/> | |
1073 </customize> | |
1074 </j2seproject3:debug> | |
1075 </target> | |
1076 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee,jar" description="Debug project in IDE." if="netbeans.home" name="debug"/> | |
1077 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> | |
1078 <j2seproject1:nbjpdastart stopclassname="${main.class}"/> | |
1079 </target> | |
1080 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | |
1081 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | |
1082 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
1083 <j2seproject3:debug classname="${debug.class}"/> | |
1084 </target> | |
1085 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | |
1086 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> | |
1087 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
1088 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> | |
1089 </target> | |
1090 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> | |
1091 <target depends="init" name="-pre-debug-fix"> | |
1092 <fail unless="fix.includes">Must set fix.includes</fail> | |
1093 <property name="javac.includes" value="${fix.includes}.java"/> | |
1094 </target> | |
1095 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | |
1096 <j2seproject1:nbjpdareload/> | |
1097 </target> | |
1098 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | |
1099 <!-- | |
1100 ================= | |
1101 PROFILING SECTION | |
1102 ================= | |
1103 --> | |
1104 <!-- | |
1105 pre NB7.2 profiler integration | |
1106 --> | |
1107 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72"> | |
1108 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1109 <nbprofiledirect> | |
1110 <classpath> | |
1111 <path path="${run.classpath}"/> | |
1112 </classpath> | |
1113 </nbprofiledirect> | |
1114 <profile/> | |
1115 </target> | |
1116 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72"> | |
1117 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> | |
1118 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1119 <nbprofiledirect> | |
1120 <classpath> | |
1121 <path path="${run.classpath}"/> | |
1122 </classpath> | |
1123 </nbprofiledirect> | |
1124 <profile classname="${profile.class}"/> | |
1125 </target> | |
1126 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72"> | |
1127 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1128 <nbprofiledirect> | |
1129 <classpath> | |
1130 <path path="${run.classpath}"/> | |
1131 </classpath> | |
1132 </nbprofiledirect> | |
1133 <profile classname="sun.applet.AppletViewer"> | |
1134 <customize> | |
1135 <arg value="${applet.url}"/> | |
1136 </customize> | |
1137 </profile> | |
1138 </target> | |
1139 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72"> | |
1140 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1141 <nbprofiledirect> | |
1142 <classpath> | |
1143 <path path="${run.test.classpath}"/> | |
1144 </classpath> | |
1145 </nbprofiledirect> | |
1146 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true"> | |
1147 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
1148 <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
1149 <jvmarg line="${profiler.info.jvmargs}"/> | |
1150 <test name="${profile.class}"/> | |
1151 <classpath> | |
1152 <path path="${run.test.classpath}"/> | |
1153 </classpath> | |
1154 <syspropertyset> | |
1155 <propertyref prefix="test-sys-prop."/> | |
1156 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
1157 </syspropertyset> | |
1158 <formatter type="brief" usefile="false"/> | |
1159 <formatter type="xml"/> | |
1160 </junit> | |
1161 </target> | |
1162 <!-- | |
1163 end of pre NB72 profiling section | |
1164 --> | |
1165 <target if="netbeans.home" name="-profile-check"> | |
1166 <condition property="profiler.configured"> | |
1167 <or> | |
1168 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/> | |
1169 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/> | |
1170 </or> | |
1171 </condition> | |
1172 </target> | |
1173 <target depends="-profile-check,-profile-pre72,jar" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent"> | |
1174 <startprofiler/> | |
1175 <antcall target="run"/> | |
1176 </target> | |
1177 <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent"> | |
1178 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1179 <startprofiler/> | |
1180 <antcall target="run-single"/> | |
1181 </target> | |
1182 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/> | |
1183 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs"> | |
1184 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | |
1185 <startprofiler/> | |
1186 <antcall target="test-single"/> | |
1187 </target> | |
1188 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main"> | |
1189 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1190 <startprofiler/> | |
1191 <antcall target="run-test-with-main"/> | |
1192 </target> | |
1193 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> | |
1194 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1195 <startprofiler/> | |
1196 <antcall target="run-applet"/> | |
1197 </target> | |
1198 <!-- | |
1199 =============== | |
1200 JAVADOC SECTION | |
1201 =============== | |
1202 --> | |
1203 <target depends="init" if="have.sources" name="-javadoc-build"> | |
1204 <mkdir dir="${dist.javadoc.dir}"/> | |
1205 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}"> | |
1206 <and> | |
1207 <isset property="endorsed.classpath.cmd.line.arg"/> | |
1208 <not> | |
1209 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/> | |
1210 </not> | |
1211 </and> | |
1212 </condition> | |
1213 <condition else="" property="bug5101868workaround" value="*.java"> | |
1214 <matches pattern="1\.[56](\..*)?" string="${java.version}"/> | |
1215 </condition> | |
1216 <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}"> | |
1217 <classpath> | |
1218 <path path="${javac.classpath}"/> | |
1219 </classpath> | |
1220 <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}"> | |
1221 <filename name="**/*.java"/> | |
1222 </fileset> | |
1223 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
1224 <include name="**/*.java"/> | |
1225 <exclude name="*.java"/> | |
1226 </fileset> | |
1227 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/> | |
1228 </javadoc> | |
1229 <copy todir="${dist.javadoc.dir}"> | |
1230 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | |
1231 <filename name="**/doc-files/**"/> | |
1232 </fileset> | |
1233 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
1234 <include name="**/doc-files/**"/> | |
1235 </fileset> | |
1236 </copy> | |
1237 </target> | |
1238 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | |
1239 <nbbrowse file="${dist.javadoc.dir}/index.html"/> | |
1240 </target> | |
1241 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | |
1242 <!-- | |
1243 ========================= | |
1244 TEST COMPILATION SECTION | |
1245 ========================= | |
1246 --> | |
1247 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> | |
1248 <mkdir dir="${build.test.classes.dir}"/> | |
1249 </target> | |
1250 <target name="-pre-compile-test"> | |
1251 <!-- Empty placeholder for easier customization. --> | |
1252 <!-- You can override this target in the ../build.xml file. --> | |
1253 </target> | |
1254 <target if="do.depend.true" name="-compile-test-depend"> | |
1255 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | |
1256 </target> | |
1257 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | |
1258 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/> | |
1259 <copy todir="${build.test.classes.dir}"> | |
1260 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
1261 </copy> | |
1262 </target> | |
1263 <target name="-post-compile-test"> | |
1264 <!-- Empty placeholder for easier customization. --> | |
1265 <!-- You can override this target in the ../build.xml file. --> | |
1266 </target> | |
1267 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | |
1268 <target name="-pre-compile-test-single"> | |
1269 <!-- Empty placeholder for easier customization. --> | |
1270 <!-- You can override this target in the ../build.xml file. --> | |
1271 </target> | |
1272 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | |
1273 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
1274 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | |
1275 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> | |
1276 <copy todir="${build.test.classes.dir}"> | |
1277 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
1278 </copy> | |
1279 </target> | |
1280 <target name="-post-compile-test-single"> | |
1281 <!-- Empty placeholder for easier customization. --> | |
1282 <!-- You can override this target in the ../build.xml file. --> | |
1283 </target> | |
1284 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> | |
1285 <!-- | |
1286 ======================= | |
1287 TEST EXECUTION SECTION | |
1288 ======================= | |
1289 --> | |
1290 <target depends="init" if="have.tests" name="-pre-test-run"> | |
1291 <mkdir dir="${build.test.results.dir}"/> | |
1292 </target> | |
1293 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> | |
1294 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/> | |
1295 </target> | |
1296 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> | |
1297 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
1298 </target> | |
1299 <target depends="init" if="have.tests" name="test-report"/> | |
1300 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> | |
1301 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> | |
1302 <target depends="init" if="have.tests" name="-pre-test-run-single"> | |
1303 <mkdir dir="${build.test.results.dir}"/> | |
1304 </target> | |
1305 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> | |
1306 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | |
1307 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/> | |
1308 </target> | |
1309 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | |
1310 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
1311 </target> | |
1312 <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"/> | |
1313 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method"> | |
1314 <fail unless="test.class">Must select some files in the IDE or set test.class</fail> | |
1315 <fail unless="test.method">Must select some method in the IDE or set test.method</fail> | |
1316 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/> | |
1317 </target> | |
1318 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method"> | |
1319 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
1320 </target> | |
1321 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/> | |
1322 <!-- | |
1323 ======================= | |
1324 TEST DEBUGGING SECTION | |
1325 ======================= | |
1326 --> | |
1327 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test"> | |
1328 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | |
1329 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/> | |
1330 </target> | |
1331 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method"> | |
1332 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | |
1333 <fail unless="test.method">Must select some method in the IDE or set test.method</fail> | |
1334 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/> | |
1335 </target> | |
1336 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | |
1337 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | |
1338 </target> | |
1339 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | |
1340 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/> | |
1341 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> | |
1342 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | |
1343 </target> | |
1344 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | |
1345 <!-- | |
1346 ========================= | |
1347 APPLET EXECUTION SECTION | |
1348 ========================= | |
1349 --> | |
1350 <target depends="init,compile-single" name="run-applet"> | |
1351 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1352 <j2seproject1:java classname="sun.applet.AppletViewer"> | |
1353 <customize> | |
1354 <arg value="${applet.url}"/> | |
1355 </customize> | |
1356 </j2seproject1:java> | |
1357 </target> | |
1358 <!-- | |
1359 ========================= | |
1360 APPLET DEBUGGING SECTION | |
1361 ========================= | |
1362 --> | |
1363 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> | |
1364 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1365 <j2seproject3:debug classname="sun.applet.AppletViewer"> | |
1366 <customize> | |
1367 <arg value="${applet.url}"/> | |
1368 </customize> | |
1369 </j2seproject3:debug> | |
1370 </target> | |
1371 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> | |
1372 <!-- | |
1373 =============== | |
1374 CLEANUP SECTION | |
1375 =============== | |
1376 --> | |
1377 <target name="-deps-clean-init" unless="built-clean.properties"> | |
1378 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> | |
1379 <delete file="${built-clean.properties}" quiet="true"/> | |
1380 </target> | |
1381 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> | |
1382 <echo level="warn" message="Cycle detected: KinaMine was already built"/> | |
1383 </target> | |
1384 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> | |
1385 <mkdir dir="${build.dir}"/> | |
1386 <touch file="${built-clean.properties}" verbose="false"/> | |
1387 <property file="${built-clean.properties}" prefix="already.built.clean."/> | |
1388 <antcall target="-warn-already-built-clean"/> | |
1389 <propertyfile file="${built-clean.properties}"> | |
1390 <entry key="${basedir}" value=""/> | |
1391 </propertyfile> | |
1392 </target> | |
1393 <target depends="init" name="-do-clean"> | |
1394 <delete dir="${build.dir}"/> | |
1395 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> | |
1396 </target> | |
1397 <target name="-post-clean"> | |
1398 <!-- Empty placeholder for easier customization. --> | |
1399 <!-- You can override this target in the ../build.xml file. --> | |
1400 </target> | |
1401 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | |
1402 <target name="-check-call-dep"> | |
1403 <property file="${call.built.properties}" prefix="already.built."/> | |
1404 <condition property="should.call.dep"> | |
1405 <and> | |
1406 <not> | |
1407 <isset property="already.built.${call.subproject}"/> | |
1408 </not> | |
1409 <available file="${call.script}"/> | |
1410 </and> | |
1411 </condition> | |
1412 </target> | |
1413 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> | |
1414 <ant antfile="${call.script}" inheritall="false" target="${call.target}"> | |
1415 <propertyset> | |
1416 <propertyref prefix="transfer."/> | |
1417 <mapper from="transfer.*" to="*" type="glob"/> | |
1418 </propertyset> | |
1419 </ant> | |
1420 </target> | |
1421 </project> |