1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
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="juser-login-lib-impl">
23 <fail message="Please build using Ant 1.8.0 or higher.">
26 <antversion atleast="1.8.0"/>
30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
32 ======================
33 INITIALIZATION SECTION
34 ======================
36 <target name="-pre-init">
37 <!-- Empty placeholder for easier customization. -->
38 <!-- You can override this target in the ../build.xml file. -->
40 <target depends="-pre-init" name="-init-private">
41 <property file="nbproject/private/config.properties"/>
42 <property file="nbproject/private/configs/${config}.properties"/>
43 <property file="nbproject/private/private.properties"/>
45 <target name="-pre-init-libraries">
46 <property location="./lib/nblibraries.properties" name="libraries.path"/>
47 <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/>
48 <pathconvert dirsep="/" property="libraries.dir">
49 <path path="${libraries.dir.nativedirsep}"/>
51 <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/>
52 <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/>
54 <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries">
55 <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties">
57 <replacestring from="$${base}" to="${libraries.dir}"/>
62 <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries">
63 <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}">
65 <replacestring from="$${base}" to="${libraries.dir}"/>
70 <target depends="-pre-init,-init-private,-init-libraries" name="-init-user">
71 <property file="${user.properties.file}"/>
72 <!-- The two properties below are usually overridden -->
73 <!-- by the active platform. Just a fallback. -->
74 <property name="default.javac.source" value="1.6"/>
75 <property name="default.javac.target" value="1.6"/>
77 <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project">
78 <property file="nbproject/configs/${config}.properties"/>
79 <property file="nbproject/project.properties"/>
81 <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
82 <property name="platform.java" value="${java.home}/bin/java"/>
83 <available file="${manifest.file}" property="manifest.available"/>
84 <condition property="splashscreen.available">
87 <equals arg1="${application.splash}" arg2="" trim="true"/>
89 <available file="${application.splash}"/>
92 <condition property="main.class.available">
94 <isset property="main.class"/>
96 <equals arg1="${main.class}" arg2="" trim="true"/>
100 <condition property="profile.available">
102 <isset property="javac.profile"/>
103 <length length="0" string="${javac.profile}" when="greater"/>
104 <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
107 <condition property="do.archive">
110 <istrue value="${jar.archive.disabled}"/>
112 <istrue value="${not.archive.disabled}"/>
115 <condition property="do.mkdist">
117 <isset property="do.archive"/>
118 <isset property="libs.CopyLibs.classpath"/>
120 <istrue value="${mkdist.disabled}"/>
124 <condition property="do.archive+manifest.available">
126 <isset property="manifest.available"/>
127 <istrue value="${do.archive}"/>
130 <condition property="do.archive+main.class.available">
132 <isset property="main.class.available"/>
133 <istrue value="${do.archive}"/>
136 <condition property="do.archive+splashscreen.available">
138 <isset property="splashscreen.available"/>
139 <istrue value="${do.archive}"/>
142 <condition property="do.archive+profile.available">
144 <isset property="profile.available"/>
145 <istrue value="${do.archive}"/>
148 <condition property="have.tests">
150 <available file="${test.src.dir}"/>
153 <condition property="have.sources">
155 <available file="${src.dir}"/>
158 <condition property="netbeans.home+have.tests">
160 <isset property="netbeans.home"/>
161 <isset property="have.tests"/>
164 <condition property="no.javadoc.preview">
166 <isset property="javadoc.preview"/>
167 <isfalse value="${javadoc.preview}"/>
170 <property name="run.jvmargs" value=""/>
171 <property name="run.jvmargs.ide" value=""/>
172 <property name="javac.compilerargs" value=""/>
173 <property name="work.dir" value="${basedir}"/>
174 <condition property="no.deps">
176 <istrue value="${no.dependencies}"/>
179 <property name="javac.debug" value="true"/>
180 <property name="javadoc.preview" value="true"/>
181 <property name="application.args" value=""/>
182 <property name="source.encoding" value="${file.encoding}"/>
183 <property name="runtime.encoding" value="${source.encoding}"/>
184 <property name="manifest.encoding" value="${source.encoding}"/>
185 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
187 <isset property="javadoc.encoding"/>
189 <equals arg1="${javadoc.encoding}" arg2=""/>
193 <property name="javadoc.encoding.used" value="${source.encoding}"/>
194 <property name="includes" value="**"/>
195 <property name="excludes" value=""/>
196 <property name="do.depend" value="false"/>
197 <condition property="do.depend.true">
198 <istrue value="${do.depend}"/>
200 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
201 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
203 <isset property="endorsed.classpath"/>
205 <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
209 <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
210 <isset property="profile.available"/>
212 <condition else="false" property="jdkBug6558476">
214 <matches pattern="1\.[56]" string="${java.specification.version}"/>
220 <condition else="false" property="javac.fork">
222 <istrue value="${jdkBug6558476}"/>
223 <istrue value="${javac.external.vm}"/>
226 <property name="jar.index" value="false"/>
227 <property name="jar.index.metainf" value="${jar.index}"/>
228 <property name="copylibs.rebase" value="true"/>
229 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
230 <condition property="junit.available">
232 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
233 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
236 <condition property="testng.available">
237 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
239 <condition property="junit+testng.available">
241 <istrue value="${junit.available}"/>
242 <istrue value="${testng.available}"/>
245 <condition else="testng" property="testng.mode" value="mixed">
246 <istrue value="${junit+testng.available}"/>
248 <condition else="" property="testng.debug.mode" value="-mixed">
249 <istrue value="${junit+testng.available}"/>
251 <property name="java.failonerror" value="true"/>
253 <target name="-post-init">
254 <!-- Empty placeholder for easier customization. -->
255 <!-- You can override this target in the ../build.xml file. -->
257 <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check">
258 <fail unless="src.dir">Must set src.dir</fail>
259 <fail unless="test.src.dir">Must set test.src.dir</fail>
260 <fail unless="build.dir">Must set build.dir</fail>
261 <fail unless="dist.dir">Must set dist.dir</fail>
262 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
263 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
264 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
265 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
266 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
267 <fail unless="dist.jar">Must set dist.jar</fail>
269 <target name="-init-macrodef-property">
270 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
271 <attribute name="name"/>
272 <attribute name="value"/>
274 <property name="@{name}" value="${@{value}}"/>
278 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
279 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
280 <attribute default="${src.dir}" name="srcdir"/>
281 <attribute default="${build.classes.dir}" name="destdir"/>
282 <attribute default="${javac.classpath}" name="classpath"/>
283 <attribute default="${javac.processorpath}" name="processorpath"/>
284 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
285 <attribute default="${includes}" name="includes"/>
286 <attribute default="${excludes}" name="excludes"/>
287 <attribute default="${javac.debug}" name="debug"/>
288 <attribute default="${empty.dir}" name="sourcepath"/>
289 <attribute default="${empty.dir}" name="gensrcdir"/>
290 <element name="customize" optional="true"/>
292 <property location="${build.dir}/empty" name="empty.dir"/>
293 <mkdir dir="${empty.dir}"/>
294 <mkdir dir="@{apgeneratedsrcdir}"/>
295 <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}">
297 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
302 <path path="@{classpath}"/>
304 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
305 <compilerarg line="${javac.profile.cmd.line.arg}"/>
306 <compilerarg line="${javac.compilerargs}"/>
307 <compilerarg value="-processorpath"/>
308 <compilerarg path="@{processorpath}:${empty.dir}"/>
309 <compilerarg line="${ap.processors.internal}"/>
310 <compilerarg line="${annotation.processing.processor.options}"/>
311 <compilerarg value="-s"/>
312 <compilerarg path="@{apgeneratedsrcdir}"/>
313 <compilerarg line="${ap.proc.none.internal}"/>
319 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
320 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
321 <attribute default="${src.dir}" name="srcdir"/>
322 <attribute default="${build.classes.dir}" name="destdir"/>
323 <attribute default="${javac.classpath}" name="classpath"/>
324 <attribute default="${javac.processorpath}" name="processorpath"/>
325 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
326 <attribute default="${includes}" name="includes"/>
327 <attribute default="${excludes}" name="excludes"/>
328 <attribute default="${javac.debug}" name="debug"/>
329 <attribute default="${empty.dir}" name="sourcepath"/>
330 <attribute default="${empty.dir}" name="gensrcdir"/>
331 <element name="customize" optional="true"/>
333 <property location="${build.dir}/empty" name="empty.dir"/>
334 <mkdir dir="${empty.dir}"/>
335 <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}">
337 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
342 <path path="@{classpath}"/>
344 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
345 <compilerarg line="${javac.profile.cmd.line.arg}"/>
346 <compilerarg line="${javac.compilerargs}"/>
352 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
353 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
354 <attribute default="${src.dir}" name="srcdir"/>
355 <attribute default="${build.classes.dir}" name="destdir"/>
356 <attribute default="${javac.classpath}" name="classpath"/>
358 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
360 <path path="@{classpath}"/>
365 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
366 <attribute default="${build.classes.dir}" name="destdir"/>
368 <fail unless="javac.includes">Must set javac.includes</fail>
369 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
371 <filelist dir="@{destdir}" files="${javac.includes}"/>
373 <globmapper from="*.java" to="*.class"/>
375 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
376 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
378 <files includesfile="${javac.includesfile.binary}"/>
381 <fileset file="${javac.includesfile.binary}"/>
386 <target if="${junit.available}" name="-init-macrodef-junit-init">
387 <condition else="false" property="nb.junit.batch" value="true">
389 <istrue value="${junit.available}"/>
391 <isset property="test.method"/>
395 <condition else="false" property="nb.junit.single" value="true">
397 <istrue value="${junit.available}"/>
398 <isset property="test.method"/>
402 <target name="-init-test-properties">
403 <property name="test.binaryincludes" value="<nothing>"/>
404 <property name="test.binarytestincludes" value=""/>
405 <property name="test.binaryexcludes" value=""/>
407 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
408 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
409 <attribute default="${includes}" name="includes"/>
410 <attribute default="${excludes}" name="excludes"/>
411 <attribute default="**" name="testincludes"/>
412 <attribute default="" name="testmethods"/>
413 <element name="customize" optional="true"/>
415 <property name="junit.forkmode" value="perTest"/>
416 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
417 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
419 <propertyref prefix="test-sys-prop."/>
420 <mapper from="test-sys-prop.*" to="*" type="glob"/>
422 <formatter type="brief" usefile="false"/>
423 <formatter type="xml"/>
424 <jvmarg value="-ea"/>
430 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
431 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
432 <attribute default="${includes}" name="includes"/>
433 <attribute default="${excludes}" name="excludes"/>
434 <attribute default="**" name="testincludes"/>
435 <attribute default="" name="testmethods"/>
436 <element name="customize" optional="true"/>
438 <property name="junit.forkmode" value="perTest"/>
439 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
440 <batchtest todir="${build.test.results.dir}">
441 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
442 <filename name="@{testincludes}"/>
444 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
445 <filename name="${test.binarytestincludes}"/>
449 <propertyref prefix="test-sys-prop."/>
450 <mapper from="test-sys-prop.*" to="*" type="glob"/>
452 <formatter type="brief" usefile="false"/>
453 <formatter type="xml"/>
454 <jvmarg value="-ea"/>
460 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
461 <target if="${testng.available}" name="-init-macrodef-testng">
462 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
463 <attribute default="${includes}" name="includes"/>
464 <attribute default="${excludes}" name="excludes"/>
465 <attribute default="**" name="testincludes"/>
466 <attribute default="" name="testmethods"/>
467 <element name="customize" optional="true"/>
469 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
470 <isset property="test.method"/>
472 <union id="test.set">
473 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
474 <filename name="@{testincludes}"/>
477 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
478 <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="juser-login-lib" testname="TestNG tests" workingDir="${work.dir}">
479 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
481 <propertyref prefix="test-sys-prop."/>
482 <mapper from="test-sys-prop.*" to="*" type="glob"/>
489 <target name="-init-macrodef-test-impl">
490 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
491 <attribute default="${includes}" name="includes"/>
492 <attribute default="${excludes}" name="excludes"/>
493 <attribute default="**" name="testincludes"/>
494 <attribute default="" name="testmethods"/>
495 <element implicit="true" name="customize" optional="true"/>
497 <echo>No tests executed.</echo>
501 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
502 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
503 <attribute default="${includes}" name="includes"/>
504 <attribute default="${excludes}" name="excludes"/>
505 <attribute default="**" name="testincludes"/>
506 <attribute default="" name="testmethods"/>
507 <element implicit="true" name="customize" optional="true"/>
509 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
511 </j2seproject3:junit>
515 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
516 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
517 <attribute default="${includes}" name="includes"/>
518 <attribute default="${excludes}" name="excludes"/>
519 <attribute default="**" name="testincludes"/>
520 <attribute default="" name="testmethods"/>
521 <element implicit="true" name="customize" optional="true"/>
523 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
525 </j2seproject3:testng>
529 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
530 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
531 <attribute default="${includes}" name="includes"/>
532 <attribute default="${excludes}" name="excludes"/>
533 <attribute default="**" name="testincludes"/>
534 <attribute default="" name="testmethods"/>
536 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
539 <path path="${run.test.classpath}"/>
541 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
542 <jvmarg line="${run.jvmargs}"/>
543 <jvmarg line="${run.jvmargs.ide}"/>
545 </j2seproject3:test-impl>
549 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
550 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
551 <attribute default="${includes}" name="includes"/>
552 <attribute default="${excludes}" name="excludes"/>
553 <attribute default="**" name="testincludes"/>
554 <attribute default="" name="testmethods"/>
555 <element name="customize" optional="true"/>
557 <property name="junit.forkmode" value="perTest"/>
558 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
559 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
561 <propertyref prefix="test-sys-prop."/>
562 <mapper from="test-sys-prop.*" to="*" type="glob"/>
564 <formatter type="brief" usefile="false"/>
565 <formatter type="xml"/>
566 <jvmarg value="-ea"/>
567 <jvmarg line="${debug-args-line}"/>
568 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
574 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
575 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
576 <attribute default="${includes}" name="includes"/>
577 <attribute default="${excludes}" name="excludes"/>
578 <attribute default="**" name="testincludes"/>
579 <attribute default="" name="testmethods"/>
580 <element name="customize" optional="true"/>
582 <property name="junit.forkmode" value="perTest"/>
583 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
584 <batchtest todir="${build.test.results.dir}">
585 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
586 <filename name="@{testincludes}"/>
588 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
589 <filename name="${test.binarytestincludes}"/>
593 <propertyref prefix="test-sys-prop."/>
594 <mapper from="test-sys-prop.*" to="*" type="glob"/>
596 <formatter type="brief" usefile="false"/>
597 <formatter type="xml"/>
598 <jvmarg value="-ea"/>
599 <jvmarg line="${debug-args-line}"/>
600 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
606 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
607 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
608 <attribute default="${includes}" name="includes"/>
609 <attribute default="${excludes}" name="excludes"/>
610 <attribute default="**" name="testincludes"/>
611 <attribute default="" name="testmethods"/>
612 <element implicit="true" name="customize" optional="true"/>
614 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
616 </j2seproject3:junit-debug>
620 <target if="${testng.available}" name="-init-macrodef-testng-debug">
621 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
622 <attribute default="${main.class}" name="testClass"/>
623 <attribute default="" name="testMethod"/>
624 <element name="customize2" optional="true"/>
626 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
627 <isset property="test.method"/>
629 <condition else="-suitename juser-login-lib -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
630 <matches pattern=".*\.xml" string="@{testClass}"/>
632 <delete dir="${build.test.results.dir}" quiet="true"/>
633 <mkdir dir="${build.test.results.dir}"/>
634 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
637 <jvmarg value="-ea"/>
638 <arg line="${testng.debug.mode}"/>
639 <arg line="-d ${build.test.results.dir}"/>
640 <arg line="-listener org.testng.reporters.VerboseReporter"/>
641 <arg line="${testng.cmd.args}"/>
643 </j2seproject3:debug>
647 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
648 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
649 <attribute default="${main.class}" name="testClass"/>
650 <attribute default="" name="testMethod"/>
651 <element implicit="true" name="customize2" optional="true"/>
653 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
655 </j2seproject3:testng-debug>
659 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
660 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
661 <attribute default="${includes}" name="includes"/>
662 <attribute default="${excludes}" name="excludes"/>
663 <attribute default="**" name="testincludes"/>
664 <attribute default="" name="testmethods"/>
665 <attribute default="${main.class}" name="testClass"/>
666 <attribute default="" name="testMethod"/>
668 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
671 <path path="${run.test.classpath}"/>
673 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
674 <jvmarg line="${run.jvmargs}"/>
675 <jvmarg line="${run.jvmargs.ide}"/>
677 </j2seproject3:test-debug-impl>
681 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
682 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
683 <attribute default="${includes}" name="includes"/>
684 <attribute default="${excludes}" name="excludes"/>
685 <attribute default="**" name="testincludes"/>
686 <attribute default="" name="testmethods"/>
687 <attribute default="${main.class}" name="testClass"/>
688 <attribute default="" name="testMethod"/>
690 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
693 <propertyref prefix="test-sys-prop."/>
694 <mapper from="test-sys-prop.*" to="*" type="glob"/>
697 </j2seproject3:testng-debug-impl>
701 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
703 pre NB7.2 profiling section; consider it deprecated
705 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
706 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
707 <!-- Empty placeholder for easier customization. -->
708 <!-- You can override this target in the ../build.xml file. -->
710 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
711 <!-- Empty placeholder for easier customization. -->
712 <!-- You can override this target in the ../build.xml file. -->
714 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
715 <macrodef name="resolve">
716 <attribute name="name"/>
717 <attribute name="value"/>
719 <property name="@{name}" value="${env.@{value}}"/>
722 <macrodef name="profile">
723 <attribute default="${main.class}" name="classname"/>
724 <element name="customize" optional="true"/>
726 <property environment="env"/>
727 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
728 <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
729 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
730 <jvmarg value="${profiler.info.jvmargs.agent}"/>
731 <jvmarg line="${profiler.info.jvmargs}"/>
732 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
733 <arg line="${application.args}"/>
735 <path path="${run.classpath}"/>
738 <propertyref prefix="run-sys-prop."/>
739 <mapper from="run-sys-prop.*" to="*" type="glob"/>
746 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
747 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
748 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
751 end of pre NB7.2 profiling section
753 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
754 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
755 <attribute default="${main.class}" name="name"/>
756 <attribute default="${debug.classpath}" name="classpath"/>
757 <attribute default="" name="stopclassname"/>
759 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
761 <path path="@{classpath}"/>
766 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
767 <attribute default="${build.classes.dir}" name="dir"/>
770 <fileset dir="@{dir}" includes="${fix.classes}">
771 <include name="${fix.includes}*.class"/>
777 <target name="-init-debug-args">
778 <property name="version-output" value="java version "${ant.java.version}"/>
779 <condition property="have-jdk-older-than-1.4">
781 <contains string="${version-output}" substring="java version "1.0"/>
782 <contains string="${version-output}" substring="java version "1.1"/>
783 <contains string="${version-output}" substring="java version "1.2"/>
784 <contains string="${version-output}" substring="java version "1.3"/>
787 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
788 <istrue value="${have-jdk-older-than-1.4}"/>
790 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
791 <os family="windows"/>
793 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
794 <isset property="debug.transport"/>
797 <target depends="-init-debug-args" name="-init-macrodef-debug">
798 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
799 <attribute default="${main.class}" name="classname"/>
800 <attribute default="${debug.classpath}" name="classpath"/>
801 <element name="customize" optional="true"/>
803 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
804 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
805 <jvmarg line="${debug-args-line}"/>
806 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
807 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
808 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
809 <jvmarg line="${run.jvmargs}"/>
810 <jvmarg line="${run.jvmargs.ide}"/>
812 <path path="@{classpath}"/>
815 <propertyref prefix="run-sys-prop."/>
816 <mapper from="run-sys-prop.*" to="*" type="glob"/>
823 <target name="-init-macrodef-java">
824 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
825 <attribute default="${main.class}" name="classname"/>
826 <attribute default="${run.classpath}" name="classpath"/>
827 <attribute default="jvm" name="jvm"/>
828 <element name="customize" optional="true"/>
830 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
831 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
832 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
833 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
834 <jvmarg line="${run.jvmargs}"/>
835 <jvmarg line="${run.jvmargs.ide}"/>
837 <path path="@{classpath}"/>
840 <propertyref prefix="run-sys-prop."/>
841 <mapper from="run-sys-prop.*" to="*" type="glob"/>
848 <target name="-init-macrodef-copylibs">
849 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
850 <attribute default="${manifest.file}" name="manifest"/>
851 <element name="customize" optional="true"/>
853 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
854 <pathconvert property="run.classpath.without.build.classes.dir">
855 <path path="${run.classpath}"/>
856 <map from="${build.classes.dir.resolved}" to=""/>
858 <pathconvert pathsep=" " property="jar.classpath">
859 <path path="${run.classpath.without.build.classes.dir}"/>
863 <replacestring from=" " to="%20"/>
865 <globmapper from="*" to="lib/*"/>
868 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
869 <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}">
870 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
872 <attribute name="Class-Path" value="${jar.classpath}"/>
879 <target name="-init-presetdef-jar">
880 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
881 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
882 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
886 <target name="-init-ap-cmdline-properties">
887 <property name="annotation.processing.enabled" value="true"/>
888 <property name="annotation.processing.processors.list" value=""/>
889 <property name="annotation.processing.processor.options" value=""/>
890 <property name="annotation.processing.run.all.processors" value="true"/>
891 <property name="javac.processorpath" value="${javac.classpath}"/>
892 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
893 <condition property="ap.supported.internal" value="true">
895 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
899 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
900 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
901 <isfalse value="${annotation.processing.run.all.processors}"/>
903 <condition else="" property="ap.proc.none.internal" value="-proc:none">
904 <isfalse value="${annotation.processing.enabled}"/>
907 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
908 <property name="ap.cmd.line.internal" value=""/>
910 <target depends="-pre-init,-init-private,-init-libraries,-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"/>
916 <target name="-deps-jar-init" unless="built-jar.properties">
917 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
918 <delete file="${built-jar.properties}" quiet="true"/>
920 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
921 <echo level="warn" message="Cycle detected: juser-login-lib was already built"/>
923 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
924 <mkdir dir="${build.dir}"/>
925 <touch file="${built-jar.properties}" verbose="false"/>
926 <property file="${built-jar.properties}" prefix="already.built.jar."/>
927 <antcall target="-warn-already-built-jar"/>
928 <propertyfile file="${built-jar.properties}">
929 <entry key="${basedir}" value=""/>
932 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
933 <target depends="init" name="-check-automatic-build">
934 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
936 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
937 <antcall target="clean"/>
939 <target depends="init,deps-jar" name="-pre-pre-compile">
940 <mkdir dir="${build.classes.dir}"/>
942 <target name="-pre-compile">
943 <!-- Empty placeholder for easier customization. -->
944 <!-- You can override this target in the ../build.xml file. -->
946 <target if="do.depend.true" name="-compile-depend">
947 <pathconvert property="build.generated.subdirs">
948 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
952 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
954 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
955 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
956 <copy todir="${build.classes.dir}">
957 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
960 <target if="has.persistence.xml" name="-copy-persistence-xml">
961 <mkdir dir="${build.classes.dir}/META-INF"/>
962 <copy todir="${build.classes.dir}/META-INF">
963 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
966 <target name="-post-compile">
967 <!-- Empty placeholder for easier customization. -->
968 <!-- You can override this target in the ../build.xml file. -->
970 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
971 <target name="-pre-compile-single">
972 <!-- Empty placeholder for easier customization. -->
973 <!-- You can override this target in the ../build.xml file. -->
975 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
976 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
977 <j2seproject3:force-recompile/>
978 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
980 <target name="-post-compile-single">
981 <!-- Empty placeholder for easier customization. -->
982 <!-- You can override this target in the ../build.xml file. -->
984 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
990 <target depends="init" name="-pre-pre-jar">
991 <dirname file="${dist.jar}" property="dist.jar.dir"/>
992 <mkdir dir="${dist.jar.dir}"/>
994 <target name="-pre-jar">
995 <!-- Empty placeholder for easier customization. -->
996 <!-- You can override this target in the ../build.xml file. -->
998 <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
999 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
1000 <touch file="${tmp.manifest.file}" verbose="false"/>
1002 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
1003 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
1004 <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
1006 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
1007 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1008 <attribute name="Main-Class" value="${main.class}"/>
1011 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
1012 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1013 <attribute name="Profile" value="${javac.profile}"/>
1016 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
1017 <basename file="${application.splash}" property="splashscreen.basename"/>
1018 <mkdir dir="${build.classes.dir}/META-INF"/>
1019 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
1020 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1021 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
1024 <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">
1025 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
1026 <echo level="info">To run this application from the command line without Ant, try:</echo>
1027 <property location="${dist.jar}" name="dist.jar.resolved"/>
1028 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
1030 <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">
1031 <j2seproject1:jar manifest="${tmp.manifest.file}"/>
1032 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1033 <property location="${dist.jar}" name="dist.jar.resolved"/>
1034 <pathconvert property="run.classpath.with.dist.jar">
1035 <path path="${run.classpath}"/>
1036 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1038 <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}">
1039 <isset property="main.class.available"/>
1041 <condition else="debug" property="jar.usage.level" value="info">
1042 <isset property="main.class.available"/>
1044 <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
1046 <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
1048 <fileset file="${tmp.manifest.file}"/>
1051 <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"/>
1052 <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"/>
1053 <target name="-post-jar">
1054 <!-- Empty placeholder for easier customization. -->
1055 <!-- You can override this target in the ../build.xml file. -->
1057 <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
1058 <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
1064 <target depends="init,compile" description="Run a main class." name="run">
1067 <arg line="${application.args}"/>
1069 </j2seproject1:java>
1071 <target name="-do-not-recompile">
1072 <property name="javac.includes.binary" value=""/>
1074 <target depends="init,compile-single" name="run-single">
1075 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1076 <j2seproject1:java classname="${run.class}"/>
1078 <target depends="init,compile-test-single" name="run-test-with-main">
1079 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1080 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
1087 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1088 <j2seproject1:nbjpdastart name="${debug.class}"/>
1090 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
1091 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
1093 <target depends="init,compile" name="-debug-start-debuggee">
1094 <j2seproject3:debug>
1096 <arg line="${application.args}"/>
1098 </j2seproject3:debug>
1100 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1101 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1102 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1104 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1105 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1106 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1107 <j2seproject3:debug classname="${debug.class}"/>
1109 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1110 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1111 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1112 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
1114 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
1115 <target depends="init" name="-pre-debug-fix">
1116 <fail unless="fix.includes">Must set fix.includes</fail>
1117 <property name="javac.includes" value="${fix.includes}.java"/>
1119 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1120 <j2seproject1:nbjpdareload/>
1122 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1129 pre NB7.2 profiler integration
1131 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1132 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1135 <path path="${run.classpath}"/>
1140 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1141 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1142 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1145 <path path="${run.classpath}"/>
1148 <profile classname="${profile.class}"/>
1150 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1151 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1154 <path path="${run.classpath}"/>
1157 <profile classname="sun.applet.AppletViewer">
1159 <arg value="${applet.url}"/>
1163 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1164 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1167 <path path="${run.test.classpath}"/>
1170 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1171 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1172 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1173 <jvmarg line="${profiler.info.jvmargs}"/>
1174 <test name="${profile.class}"/>
1176 <path path="${run.test.classpath}"/>
1179 <propertyref prefix="test-sys-prop."/>
1180 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1182 <formatter type="brief" usefile="false"/>
1183 <formatter type="xml"/>
1187 end of pre NB72 profiling section
1189 <target if="netbeans.home" name="-profile-check">
1190 <condition property="profiler.configured">
1192 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1193 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1197 <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1199 <antcall target="run"/>
1201 <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">
1202 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1204 <antcall target="run-single"/>
1206 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1207 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1208 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1210 <antcall target="test-single"/>
1212 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1213 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1215 <antcall target="run-test-with-main"/>
1217 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1218 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1220 <antcall target="run-applet"/>
1227 <target depends="init" if="have.sources" name="-javadoc-build">
1228 <mkdir dir="${dist.javadoc.dir}"/>
1229 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1231 <isset property="endorsed.classpath.cmd.line.arg"/>
1233 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1237 <condition else="" property="bug5101868workaround" value="*.java">
1238 <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
1240 <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}">
1242 <path path="${javac.classpath}"/>
1244 <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
1245 <filename name="**/*.java"/>
1247 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1248 <include name="**/*.java"/>
1249 <exclude name="*.java"/>
1251 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1253 <copy todir="${dist.javadoc.dir}">
1254 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1255 <filename name="**/doc-files/**"/>
1257 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1258 <include name="**/doc-files/**"/>
1262 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1263 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1265 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1267 =========================
1268 TEST COMPILATION SECTION
1269 =========================
1271 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1272 <mkdir dir="${build.test.classes.dir}"/>
1274 <target name="-pre-compile-test">
1275 <!-- Empty placeholder for easier customization. -->
1276 <!-- You can override this target in the ../build.xml file. -->
1278 <target if="do.depend.true" name="-compile-test-depend">
1279 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1281 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1282 <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}"/>
1283 <copy todir="${build.test.classes.dir}">
1284 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1287 <target name="-post-compile-test">
1288 <!-- Empty placeholder for easier customization. -->
1289 <!-- You can override this target in the ../build.xml file. -->
1291 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1292 <target name="-pre-compile-test-single">
1293 <!-- Empty placeholder for easier customization. -->
1294 <!-- You can override this target in the ../build.xml file. -->
1296 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1297 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1298 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1299 <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}"/>
1300 <copy todir="${build.test.classes.dir}">
1301 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1304 <target name="-post-compile-test-single">
1305 <!-- Empty placeholder for easier customization. -->
1306 <!-- You can override this target in the ../build.xml file. -->
1308 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1310 =======================
1311 TEST EXECUTION SECTION
1312 =======================
1314 <target depends="init" if="have.tests" name="-pre-test-run">
1315 <mkdir dir="${build.test.results.dir}"/>
1317 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1318 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
1320 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1321 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1323 <target depends="init" if="have.tests" name="test-report"/>
1324 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1325 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1326 <target depends="init" if="have.tests" name="-pre-test-run-single">
1327 <mkdir dir="${build.test.results.dir}"/>
1329 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1330 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1331 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1333 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1334 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1336 <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"/>
1337 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1338 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1339 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1340 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1342 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1343 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1345 <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"/>
1347 =======================
1348 TEST DEBUGGING SECTION
1349 =======================
1351 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1352 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1353 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1355 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1356 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1357 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1358 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1360 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1361 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1363 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1364 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1365 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1366 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1368 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1370 =========================
1371 APPLET EXECUTION SECTION
1372 =========================
1374 <target depends="init,compile-single" name="run-applet">
1375 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1376 <j2seproject1:java classname="sun.applet.AppletViewer">
1378 <arg value="${applet.url}"/>
1380 </j2seproject1:java>
1383 =========================
1384 APPLET DEBUGGING SECTION
1385 =========================
1387 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1388 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1389 <j2seproject3:debug classname="sun.applet.AppletViewer">
1391 <arg value="${applet.url}"/>
1393 </j2seproject3:debug>
1395 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1401 <target name="-deps-clean-init" unless="built-clean.properties">
1402 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1403 <delete file="${built-clean.properties}" quiet="true"/>
1405 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1406 <echo level="warn" message="Cycle detected: juser-login-lib was already built"/>
1408 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1409 <mkdir dir="${build.dir}"/>
1410 <touch file="${built-clean.properties}" verbose="false"/>
1411 <property file="${built-clean.properties}" prefix="already.built.clean."/>
1412 <antcall target="-warn-already-built-clean"/>
1413 <propertyfile file="${built-clean.properties}">
1414 <entry key="${basedir}" value=""/>
1417 <target depends="init" name="-do-clean">
1418 <delete dir="${build.dir}"/>
1419 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1421 <target name="-post-clean">
1422 <!-- Empty placeholder for easier customization. -->
1423 <!-- You can override this target in the ../build.xml file. -->
1425 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1426 <target name="-check-call-dep">
1427 <property file="${call.built.properties}" prefix="already.built."/>
1428 <condition property="should.call.dep">
1431 <isset property="already.built.${call.subproject}"/>
1433 <available file="${call.script}"/>
1437 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1438 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1440 <propertyref prefix="transfer."/>
1441 <mapper from="transfer.*" to="*" type="glob"/>