při zavření okna nedělat tvrdý EXIT, ale jen DISPOSE a počkat, až se vše ukončí
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="rozsirene-atributy-jedit-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 depends="-pre-init,-init-private" name="-init-user">
46 <property file="${user.properties.file}"/>
47 <!-- The two properties below are usually overridden -->
48 <!-- by the active platform. Just a fallback. -->
49 <property name="default.javac.source" value="1.6"/>
50 <property name="default.javac.target" value="1.6"/>
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
53 <property file="nbproject/configs/${config}.properties"/>
54 <property file="nbproject/project.properties"/>
56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
57 <property name="platform.java" value="${java.home}/bin/java"/>
58 <available file="${manifest.file}" property="manifest.available"/>
59 <condition property="splashscreen.available">
62 <equals arg1="${application.splash}" arg2="" trim="true"/>
64 <available file="${application.splash}"/>
67 <condition property="main.class.available">
69 <isset property="main.class"/>
71 <equals arg1="${main.class}" arg2="" trim="true"/>
75 <condition property="profile.available">
77 <isset property="javac.profile"/>
78 <length length="0" string="${javac.profile}" when="greater"/>
79 <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
82 <condition property="do.archive">
85 <istrue value="${jar.archive.disabled}"/>
87 <istrue value="${not.archive.disabled}"/>
90 <condition property="do.mkdist">
92 <isset property="do.archive"/>
93 <isset property="libs.CopyLibs.classpath"/>
95 <istrue value="${mkdist.disabled}"/>
99 <condition property="do.archive+manifest.available">
101 <isset property="manifest.available"/>
102 <istrue value="${do.archive}"/>
105 <condition property="do.archive+main.class.available">
107 <isset property="main.class.available"/>
108 <istrue value="${do.archive}"/>
111 <condition property="do.archive+splashscreen.available">
113 <isset property="splashscreen.available"/>
114 <istrue value="${do.archive}"/>
117 <condition property="do.archive+profile.available">
119 <isset property="profile.available"/>
120 <istrue value="${do.archive}"/>
123 <condition property="have.tests">
125 <available file="${test.src.dir}"/>
128 <condition property="have.sources">
130 <available file="${src.dir}"/>
133 <condition property="netbeans.home+have.tests">
135 <isset property="netbeans.home"/>
136 <isset property="have.tests"/>
139 <condition property="no.javadoc.preview">
141 <isset property="javadoc.preview"/>
142 <isfalse value="${javadoc.preview}"/>
145 <property name="run.jvmargs" value=""/>
146 <property name="run.jvmargs.ide" value=""/>
147 <property name="javac.compilerargs" value=""/>
148 <property name="work.dir" value="${basedir}"/>
149 <condition property="no.deps">
151 <istrue value="${no.dependencies}"/>
154 <property name="javac.debug" value="true"/>
155 <property name="javadoc.preview" value="true"/>
156 <property name="application.args" value=""/>
157 <property name="source.encoding" value="${file.encoding}"/>
158 <property name="runtime.encoding" value="${source.encoding}"/>
159 <property name="manifest.encoding" value="${source.encoding}"/>
160 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
162 <isset property="javadoc.encoding"/>
164 <equals arg1="${javadoc.encoding}" arg2=""/>
168 <property name="javadoc.encoding.used" value="${source.encoding}"/>
169 <property name="includes" value="**"/>
170 <property name="excludes" value=""/>
171 <property name="do.depend" value="false"/>
172 <condition property="do.depend.true">
173 <istrue value="${do.depend}"/>
175 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
176 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
178 <isset property="endorsed.classpath"/>
180 <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
184 <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
185 <isset property="profile.available"/>
187 <condition else="false" property="jdkBug6558476">
189 <matches pattern="1\.[56]" string="${java.specification.version}"/>
195 <condition else="false" property="javac.fork">
197 <istrue value="${jdkBug6558476}"/>
198 <istrue value="${javac.external.vm}"/>
201 <property name="jar.index" value="false"/>
202 <property name="jar.index.metainf" value="${jar.index}"/>
203 <property name="copylibs.rebase" value="true"/>
204 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
205 <condition property="junit.available">
207 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
208 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
211 <condition property="testng.available">
212 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
214 <condition property="junit+testng.available">
216 <istrue value="${junit.available}"/>
217 <istrue value="${testng.available}"/>
220 <condition else="testng" property="testng.mode" value="mixed">
221 <istrue value="${junit+testng.available}"/>
223 <condition else="" property="testng.debug.mode" value="-mixed">
224 <istrue value="${junit+testng.available}"/>
226 <property name="java.failonerror" value="true"/>
228 <target name="-post-init">
229 <!-- Empty placeholder for easier customization. -->
230 <!-- You can override this target in the ../build.xml file. -->
232 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
233 <fail unless="src.dir">Must set src.dir</fail>
234 <fail unless="test.src.dir">Must set test.src.dir</fail>
235 <fail unless="build.dir">Must set build.dir</fail>
236 <fail unless="dist.dir">Must set dist.dir</fail>
237 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
238 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
239 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
240 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
241 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
242 <fail unless="dist.jar">Must set dist.jar</fail>
244 <target name="-init-macrodef-property">
245 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
246 <attribute name="name"/>
247 <attribute name="value"/>
249 <property name="@{name}" value="${@{value}}"/>
253 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
254 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
255 <attribute default="${src.dir}" name="srcdir"/>
256 <attribute default="${build.classes.dir}" name="destdir"/>
257 <attribute default="${javac.classpath}" name="classpath"/>
258 <attribute default="${javac.processorpath}" name="processorpath"/>
259 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
260 <attribute default="${includes}" name="includes"/>
261 <attribute default="${excludes}" name="excludes"/>
262 <attribute default="${javac.debug}" name="debug"/>
263 <attribute default="${empty.dir}" name="sourcepath"/>
264 <attribute default="${empty.dir}" name="gensrcdir"/>
265 <element name="customize" optional="true"/>
267 <property location="${build.dir}/empty" name="empty.dir"/>
268 <mkdir dir="${empty.dir}"/>
269 <mkdir dir="@{apgeneratedsrcdir}"/>
270 <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 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
277 <path path="@{classpath}"/>
279 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
280 <compilerarg line="${javac.profile.cmd.line.arg}"/>
281 <compilerarg line="${javac.compilerargs}"/>
282 <compilerarg value="-processorpath"/>
283 <compilerarg path="@{processorpath}:${empty.dir}"/>
284 <compilerarg line="${ap.processors.internal}"/>
285 <compilerarg line="${annotation.processing.processor.options}"/>
286 <compilerarg value="-s"/>
287 <compilerarg path="@{apgeneratedsrcdir}"/>
288 <compilerarg line="${ap.proc.none.internal}"/>
294 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
295 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
296 <attribute default="${src.dir}" name="srcdir"/>
297 <attribute default="${build.classes.dir}" name="destdir"/>
298 <attribute default="${javac.classpath}" name="classpath"/>
299 <attribute default="${javac.processorpath}" name="processorpath"/>
300 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
301 <attribute default="${includes}" name="includes"/>
302 <attribute default="${excludes}" name="excludes"/>
303 <attribute default="${javac.debug}" name="debug"/>
304 <attribute default="${empty.dir}" name="sourcepath"/>
305 <attribute default="${empty.dir}" name="gensrcdir"/>
306 <element name="customize" optional="true"/>
308 <property location="${build.dir}/empty" name="empty.dir"/>
309 <mkdir dir="${empty.dir}"/>
310 <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 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
317 <path path="@{classpath}"/>
319 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
320 <compilerarg line="${javac.profile.cmd.line.arg}"/>
321 <compilerarg line="${javac.compilerargs}"/>
327 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
328 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
329 <attribute default="${src.dir}" name="srcdir"/>
330 <attribute default="${build.classes.dir}" name="destdir"/>
331 <attribute default="${javac.classpath}" name="classpath"/>
333 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
335 <path path="@{classpath}"/>
340 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
341 <attribute default="${build.classes.dir}" name="destdir"/>
343 <fail unless="javac.includes">Must set javac.includes</fail>
344 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
346 <filelist dir="@{destdir}" files="${javac.includes}"/>
348 <globmapper from="*.java" to="*.class"/>
350 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
351 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
353 <files includesfile="${javac.includesfile.binary}"/>
356 <fileset file="${javac.includesfile.binary}"/>
361 <target if="${junit.available}" name="-init-macrodef-junit-init">
362 <condition else="false" property="nb.junit.batch" value="true">
364 <istrue value="${junit.available}"/>
366 <isset property="test.method"/>
370 <condition else="false" property="nb.junit.single" value="true">
372 <istrue value="${junit.available}"/>
373 <isset property="test.method"/>
377 <target name="-init-test-properties">
378 <property name="test.binaryincludes" value="<nothing>"/>
379 <property name="test.binarytestincludes" value=""/>
380 <property name="test.binaryexcludes" value=""/>
382 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
383 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
384 <attribute default="${includes}" name="includes"/>
385 <attribute default="${excludes}" name="excludes"/>
386 <attribute default="**" name="testincludes"/>
387 <attribute default="" name="testmethods"/>
388 <element name="customize" optional="true"/>
390 <property name="junit.forkmode" value="perTest"/>
391 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
392 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
394 <propertyref prefix="test-sys-prop."/>
395 <mapper from="test-sys-prop.*" to="*" type="glob"/>
397 <formatter type="brief" usefile="false"/>
398 <formatter type="xml"/>
399 <jvmarg value="-ea"/>
405 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
406 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
407 <attribute default="${includes}" name="includes"/>
408 <attribute default="${excludes}" name="excludes"/>
409 <attribute default="**" name="testincludes"/>
410 <attribute default="" name="testmethods"/>
411 <element name="customize" optional="true"/>
413 <property name="junit.forkmode" value="perTest"/>
414 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
415 <batchtest todir="${build.test.results.dir}">
416 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
417 <filename name="@{testincludes}"/>
419 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
420 <filename name="${test.binarytestincludes}"/>
424 <propertyref prefix="test-sys-prop."/>
425 <mapper from="test-sys-prop.*" to="*" type="glob"/>
427 <formatter type="brief" usefile="false"/>
428 <formatter type="xml"/>
429 <jvmarg value="-ea"/>
435 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
436 <target if="${testng.available}" name="-init-macrodef-testng">
437 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
438 <attribute default="${includes}" name="includes"/>
439 <attribute default="${excludes}" name="excludes"/>
440 <attribute default="**" name="testincludes"/>
441 <attribute default="" name="testmethods"/>
442 <element name="customize" optional="true"/>
444 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
445 <isset property="test.method"/>
447 <union id="test.set">
448 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
449 <filename name="@{testincludes}"/>
452 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
453 <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="rozsirene-atributy-jedit" testname="TestNG tests" workingDir="${work.dir}">
454 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
456 <propertyref prefix="test-sys-prop."/>
457 <mapper from="test-sys-prop.*" to="*" type="glob"/>
464 <target name="-init-macrodef-test-impl">
465 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
466 <attribute default="${includes}" name="includes"/>
467 <attribute default="${excludes}" name="excludes"/>
468 <attribute default="**" name="testincludes"/>
469 <attribute default="" name="testmethods"/>
470 <element implicit="true" name="customize" optional="true"/>
472 <echo>No tests executed.</echo>
476 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
477 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
478 <attribute default="${includes}" name="includes"/>
479 <attribute default="${excludes}" name="excludes"/>
480 <attribute default="**" name="testincludes"/>
481 <attribute default="" name="testmethods"/>
482 <element implicit="true" name="customize" optional="true"/>
484 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
486 </j2seproject3:junit>
490 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
491 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
492 <attribute default="${includes}" name="includes"/>
493 <attribute default="${excludes}" name="excludes"/>
494 <attribute default="**" name="testincludes"/>
495 <attribute default="" name="testmethods"/>
496 <element implicit="true" name="customize" optional="true"/>
498 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
500 </j2seproject3:testng>
504 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
505 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
506 <attribute default="${includes}" name="includes"/>
507 <attribute default="${excludes}" name="excludes"/>
508 <attribute default="**" name="testincludes"/>
509 <attribute default="" name="testmethods"/>
511 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
514 <path path="${run.test.classpath}"/>
516 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
517 <jvmarg line="${run.jvmargs}"/>
518 <jvmarg line="${run.jvmargs.ide}"/>
520 </j2seproject3:test-impl>
524 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
525 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
526 <attribute default="${includes}" name="includes"/>
527 <attribute default="${excludes}" name="excludes"/>
528 <attribute default="**" name="testincludes"/>
529 <attribute default="" name="testmethods"/>
530 <element name="customize" optional="true"/>
532 <property name="junit.forkmode" value="perTest"/>
533 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
534 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
536 <propertyref prefix="test-sys-prop."/>
537 <mapper from="test-sys-prop.*" to="*" type="glob"/>
539 <formatter type="brief" usefile="false"/>
540 <formatter type="xml"/>
541 <jvmarg value="-ea"/>
542 <jvmarg line="${debug-args-line}"/>
543 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
549 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-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 <batchtest todir="${build.test.results.dir}">
560 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
561 <filename name="@{testincludes}"/>
563 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
564 <filename name="${test.binarytestincludes}"/>
568 <propertyref prefix="test-sys-prop."/>
569 <mapper from="test-sys-prop.*" to="*" type="glob"/>
571 <formatter type="brief" usefile="false"/>
572 <formatter type="xml"/>
573 <jvmarg value="-ea"/>
574 <jvmarg line="${debug-args-line}"/>
575 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
581 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
582 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
583 <attribute default="${includes}" name="includes"/>
584 <attribute default="${excludes}" name="excludes"/>
585 <attribute default="**" name="testincludes"/>
586 <attribute default="" name="testmethods"/>
587 <element implicit="true" name="customize" optional="true"/>
589 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
591 </j2seproject3:junit-debug>
595 <target if="${testng.available}" name="-init-macrodef-testng-debug">
596 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
597 <attribute default="${main.class}" name="testClass"/>
598 <attribute default="" name="testMethod"/>
599 <element name="customize2" optional="true"/>
601 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
602 <isset property="test.method"/>
604 <condition else="-suitename rozsirene-atributy-jedit -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
605 <matches pattern=".*\.xml" string="@{testClass}"/>
607 <delete dir="${build.test.results.dir}" quiet="true"/>
608 <mkdir dir="${build.test.results.dir}"/>
609 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
612 <jvmarg value="-ea"/>
613 <arg line="${testng.debug.mode}"/>
614 <arg line="-d ${build.test.results.dir}"/>
615 <arg line="-listener org.testng.reporters.VerboseReporter"/>
616 <arg line="${testng.cmd.args}"/>
618 </j2seproject3:debug>
622 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
623 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
624 <attribute default="${main.class}" name="testClass"/>
625 <attribute default="" name="testMethod"/>
626 <element implicit="true" name="customize2" optional="true"/>
628 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
630 </j2seproject3:testng-debug>
634 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
635 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
636 <attribute default="${includes}" name="includes"/>
637 <attribute default="${excludes}" name="excludes"/>
638 <attribute default="**" name="testincludes"/>
639 <attribute default="" name="testmethods"/>
640 <attribute default="${main.class}" name="testClass"/>
641 <attribute default="" name="testMethod"/>
643 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
646 <path path="${run.test.classpath}"/>
648 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
649 <jvmarg line="${run.jvmargs}"/>
650 <jvmarg line="${run.jvmargs.ide}"/>
652 </j2seproject3:test-debug-impl>
656 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
657 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
658 <attribute default="${includes}" name="includes"/>
659 <attribute default="${excludes}" name="excludes"/>
660 <attribute default="**" name="testincludes"/>
661 <attribute default="" name="testmethods"/>
662 <attribute default="${main.class}" name="testClass"/>
663 <attribute default="" name="testMethod"/>
665 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
668 <propertyref prefix="test-sys-prop."/>
669 <mapper from="test-sys-prop.*" to="*" type="glob"/>
672 </j2seproject3:testng-debug-impl>
676 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
678 pre NB7.2 profiling section; consider it deprecated
680 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
681 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
682 <!-- Empty placeholder for easier customization. -->
683 <!-- You can override this target in the ../build.xml file. -->
685 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
686 <!-- Empty placeholder for easier customization. -->
687 <!-- You can override this target in the ../build.xml file. -->
689 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
690 <macrodef name="resolve">
691 <attribute name="name"/>
692 <attribute name="value"/>
694 <property name="@{name}" value="${env.@{value}}"/>
697 <macrodef name="profile">
698 <attribute default="${main.class}" name="classname"/>
699 <element name="customize" optional="true"/>
701 <property environment="env"/>
702 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
703 <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
704 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
705 <jvmarg value="${profiler.info.jvmargs.agent}"/>
706 <jvmarg line="${profiler.info.jvmargs}"/>
707 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
708 <arg line="${application.args}"/>
710 <path path="${run.classpath}"/>
713 <propertyref prefix="run-sys-prop."/>
714 <mapper from="run-sys-prop.*" to="*" type="glob"/>
721 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
722 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
723 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
726 end of pre NB7.2 profiling section
728 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
729 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
730 <attribute default="${main.class}" name="name"/>
731 <attribute default="${debug.classpath}" name="classpath"/>
732 <attribute default="" name="stopclassname"/>
734 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
736 <path path="@{classpath}"/>
741 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
742 <attribute default="${build.classes.dir}" name="dir"/>
745 <fileset dir="@{dir}" includes="${fix.classes}">
746 <include name="${fix.includes}*.class"/>
752 <target name="-init-debug-args">
753 <property name="version-output" value="java version "${ant.java.version}"/>
754 <condition property="have-jdk-older-than-1.4">
756 <contains string="${version-output}" substring="java version "1.0"/>
757 <contains string="${version-output}" substring="java version "1.1"/>
758 <contains string="${version-output}" substring="java version "1.2"/>
759 <contains string="${version-output}" substring="java version "1.3"/>
762 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
763 <istrue value="${have-jdk-older-than-1.4}"/>
765 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
766 <os family="windows"/>
768 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
769 <isset property="debug.transport"/>
772 <target depends="-init-debug-args" name="-init-macrodef-debug">
773 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
774 <attribute default="${main.class}" name="classname"/>
775 <attribute default="${debug.classpath}" name="classpath"/>
776 <element name="customize" optional="true"/>
778 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
779 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
780 <jvmarg line="${debug-args-line}"/>
781 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
782 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
783 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
784 <jvmarg line="${run.jvmargs}"/>
785 <jvmarg line="${run.jvmargs.ide}"/>
787 <path path="@{classpath}"/>
790 <propertyref prefix="run-sys-prop."/>
791 <mapper from="run-sys-prop.*" to="*" type="glob"/>
798 <target name="-init-macrodef-java">
799 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
800 <attribute default="${main.class}" name="classname"/>
801 <attribute default="${run.classpath}" name="classpath"/>
802 <attribute default="jvm" name="jvm"/>
803 <element name="customize" optional="true"/>
805 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
806 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
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-copylibs">
824 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
825 <attribute default="${manifest.file}" name="manifest"/>
826 <element name="customize" optional="true"/>
828 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
829 <pathconvert property="run.classpath.without.build.classes.dir">
830 <path path="${run.classpath}"/>
831 <map from="${build.classes.dir.resolved}" to=""/>
833 <pathconvert pathsep=" " property="jar.classpath">
834 <path path="${run.classpath.without.build.classes.dir}"/>
838 <replacestring from=" " to="%20"/>
840 <globmapper from="*" to="lib/*"/>
843 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
844 <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}">
845 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
847 <attribute name="Class-Path" value="${jar.classpath}"/>
854 <target name="-init-presetdef-jar">
855 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
856 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
857 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
861 <target name="-init-ap-cmdline-properties">
862 <property name="annotation.processing.enabled" value="true"/>
863 <property name="annotation.processing.processors.list" value=""/>
864 <property name="annotation.processing.processor.options" value=""/>
865 <property name="annotation.processing.run.all.processors" value="true"/>
866 <property name="javac.processorpath" value="${javac.classpath}"/>
867 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
868 <condition property="ap.supported.internal" value="true">
870 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
874 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
875 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
876 <isfalse value="${annotation.processing.run.all.processors}"/>
878 <condition else="" property="ap.proc.none.internal" value="-proc:none">
879 <isfalse value="${annotation.processing.enabled}"/>
882 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
883 <property name="ap.cmd.line.internal" value=""/>
885 <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"/>
891 <target name="-deps-jar-init" unless="built-jar.properties">
892 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
893 <delete file="${built-jar.properties}" quiet="true"/>
895 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
896 <echo level="warn" message="Cycle detected: rozsirene-atributy-jedit was already built"/>
898 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
899 <mkdir dir="${build.dir}"/>
900 <touch file="${built-jar.properties}" verbose="false"/>
901 <property file="${built-jar.properties}" prefix="already.built.jar."/>
902 <antcall target="-warn-already-built-jar"/>
903 <propertyfile file="${built-jar.properties}">
904 <entry key="${basedir}" value=""/>
906 <antcall target="-maybe-call-dep">
907 <param name="call.built.properties" value="${built-jar.properties}"/>
908 <param location="${project.rozsirene-atributy}" name="call.subproject"/>
909 <param location="${project.rozsirene-atributy}/build.xml" name="call.script"/>
910 <param name="call.target" value="jar"/>
911 <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
912 <param name="transfer.not.archive.disabled" value="true"/>
915 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
916 <target depends="init" name="-check-automatic-build">
917 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
919 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
920 <antcall target="clean"/>
922 <target depends="init,deps-jar" name="-pre-pre-compile">
923 <mkdir dir="${build.classes.dir}"/>
925 <target name="-pre-compile">
926 <!-- Empty placeholder for easier customization. -->
927 <!-- You can override this target in the ../build.xml file. -->
929 <target if="do.depend.true" name="-compile-depend">
930 <pathconvert property="build.generated.subdirs">
931 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
935 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
937 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
938 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
939 <copy todir="${build.classes.dir}">
940 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
943 <target if="has.persistence.xml" name="-copy-persistence-xml">
944 <mkdir dir="${build.classes.dir}/META-INF"/>
945 <copy todir="${build.classes.dir}/META-INF">
946 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
949 <target name="-post-compile">
950 <!-- Empty placeholder for easier customization. -->
951 <!-- You can override this target in the ../build.xml file. -->
953 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
954 <target name="-pre-compile-single">
955 <!-- Empty placeholder for easier customization. -->
956 <!-- You can override this target in the ../build.xml file. -->
958 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
959 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
960 <j2seproject3:force-recompile/>
961 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
963 <target name="-post-compile-single">
964 <!-- Empty placeholder for easier customization. -->
965 <!-- You can override this target in the ../build.xml file. -->
967 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
973 <target depends="init" name="-pre-pre-jar">
974 <dirname file="${dist.jar}" property="dist.jar.dir"/>
975 <mkdir dir="${dist.jar.dir}"/>
977 <target name="-pre-jar">
978 <!-- Empty placeholder for easier customization. -->
979 <!-- You can override this target in the ../build.xml file. -->
981 <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
982 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
983 <touch file="${tmp.manifest.file}" verbose="false"/>
985 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
986 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
987 <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
989 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
990 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
991 <attribute name="Main-Class" value="${main.class}"/>
994 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
995 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
996 <attribute name="Profile" value="${javac.profile}"/>
999 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
1000 <basename file="${application.splash}" property="splashscreen.basename"/>
1001 <mkdir dir="${build.classes.dir}/META-INF"/>
1002 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
1003 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1004 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
1007 <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">
1008 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
1009 <echo level="info">To run this application from the command line without Ant, try:</echo>
1010 <property location="${dist.jar}" name="dist.jar.resolved"/>
1011 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
1013 <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">
1014 <j2seproject1:jar manifest="${tmp.manifest.file}"/>
1015 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1016 <property location="${dist.jar}" name="dist.jar.resolved"/>
1017 <pathconvert property="run.classpath.with.dist.jar">
1018 <path path="${run.classpath}"/>
1019 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1021 <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}">
1022 <isset property="main.class.available"/>
1024 <condition else="debug" property="jar.usage.level" value="info">
1025 <isset property="main.class.available"/>
1027 <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
1029 <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
1031 <fileset file="${tmp.manifest.file}"/>
1034 <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"/>
1035 <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"/>
1036 <target name="-post-jar">
1037 <!-- Empty placeholder for easier customization. -->
1038 <!-- You can override this target in the ../build.xml file. -->
1040 <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
1041 <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
1047 <target depends="init,compile" description="Run a main class." name="run">
1050 <arg line="${application.args}"/>
1052 </j2seproject1:java>
1054 <target name="-do-not-recompile">
1055 <property name="javac.includes.binary" value=""/>
1057 <target depends="init,compile-single" name="run-single">
1058 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1059 <j2seproject1:java classname="${run.class}"/>
1061 <target depends="init,compile-test-single" name="run-test-with-main">
1062 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1063 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
1070 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1071 <j2seproject1:nbjpdastart name="${debug.class}"/>
1073 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
1074 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
1076 <target depends="init,compile" name="-debug-start-debuggee">
1077 <j2seproject3:debug>
1079 <arg line="${application.args}"/>
1081 </j2seproject3:debug>
1083 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1084 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1085 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1087 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1088 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1089 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1090 <j2seproject3:debug classname="${debug.class}"/>
1092 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1093 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1094 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1095 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
1097 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
1098 <target depends="init" name="-pre-debug-fix">
1099 <fail unless="fix.includes">Must set fix.includes</fail>
1100 <property name="javac.includes" value="${fix.includes}.java"/>
1102 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1103 <j2seproject1:nbjpdareload/>
1105 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1112 pre NB7.2 profiler integration
1114 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1115 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1118 <path path="${run.classpath}"/>
1123 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1124 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1125 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1128 <path path="${run.classpath}"/>
1131 <profile classname="${profile.class}"/>
1133 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1134 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1137 <path path="${run.classpath}"/>
1140 <profile classname="sun.applet.AppletViewer">
1142 <arg value="${applet.url}"/>
1146 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1147 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1150 <path path="${run.test.classpath}"/>
1153 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1154 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1155 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1156 <jvmarg line="${profiler.info.jvmargs}"/>
1157 <test name="${profile.class}"/>
1159 <path path="${run.test.classpath}"/>
1162 <propertyref prefix="test-sys-prop."/>
1163 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1165 <formatter type="brief" usefile="false"/>
1166 <formatter type="xml"/>
1170 end of pre NB72 profiling section
1172 <target if="netbeans.home" name="-profile-check">
1173 <condition property="profiler.configured">
1175 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1176 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1180 <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1182 <antcall target="run"/>
1184 <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">
1185 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1187 <antcall target="run-single"/>
1189 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1190 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1191 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1193 <antcall target="test-single"/>
1195 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1196 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1198 <antcall target="run-test-with-main"/>
1200 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1201 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1203 <antcall target="run-applet"/>
1210 <target depends="init" if="have.sources" name="-javadoc-build">
1211 <mkdir dir="${dist.javadoc.dir}"/>
1212 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1214 <isset property="endorsed.classpath.cmd.line.arg"/>
1216 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1220 <condition else="" property="bug5101868workaround" value="*.java">
1221 <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
1223 <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}">
1225 <path path="${javac.classpath}"/>
1227 <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
1228 <filename name="**/*.java"/>
1230 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1231 <include name="**/*.java"/>
1232 <exclude name="*.java"/>
1234 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1236 <copy todir="${dist.javadoc.dir}">
1237 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1238 <filename name="**/doc-files/**"/>
1240 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1241 <include name="**/doc-files/**"/>
1245 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1246 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1248 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1250 =========================
1251 TEST COMPILATION SECTION
1252 =========================
1254 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1255 <mkdir dir="${build.test.classes.dir}"/>
1257 <target name="-pre-compile-test">
1258 <!-- Empty placeholder for easier customization. -->
1259 <!-- You can override this target in the ../build.xml file. -->
1261 <target if="do.depend.true" name="-compile-test-depend">
1262 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1264 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1265 <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}"/>
1266 <copy todir="${build.test.classes.dir}">
1267 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1270 <target name="-post-compile-test">
1271 <!-- Empty placeholder for easier customization. -->
1272 <!-- You can override this target in the ../build.xml file. -->
1274 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1275 <target name="-pre-compile-test-single">
1276 <!-- Empty placeholder for easier customization. -->
1277 <!-- You can override this target in the ../build.xml file. -->
1279 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1280 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1281 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1282 <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}"/>
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-single">
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-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1293 =======================
1294 TEST EXECUTION SECTION
1295 =======================
1297 <target depends="init" if="have.tests" name="-pre-test-run">
1298 <mkdir dir="${build.test.results.dir}"/>
1300 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1301 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
1303 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1304 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1306 <target depends="init" if="have.tests" name="test-report"/>
1307 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1308 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1309 <target depends="init" if="have.tests" name="-pre-test-run-single">
1310 <mkdir dir="${build.test.results.dir}"/>
1312 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1313 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1314 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1316 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1317 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1319 <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"/>
1320 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1321 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1322 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1323 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1325 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1326 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1328 <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"/>
1330 =======================
1331 TEST DEBUGGING SECTION
1332 =======================
1334 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1335 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1336 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1338 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1339 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1340 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1341 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1343 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1344 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1346 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1347 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1348 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1349 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1351 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1353 =========================
1354 APPLET EXECUTION SECTION
1355 =========================
1357 <target depends="init,compile-single" name="run-applet">
1358 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1359 <j2seproject1:java classname="sun.applet.AppletViewer">
1361 <arg value="${applet.url}"/>
1363 </j2seproject1:java>
1366 =========================
1367 APPLET DEBUGGING SECTION
1368 =========================
1370 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1371 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1372 <j2seproject3:debug classname="sun.applet.AppletViewer">
1374 <arg value="${applet.url}"/>
1376 </j2seproject3:debug>
1378 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1384 <target name="-deps-clean-init" unless="built-clean.properties">
1385 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1386 <delete file="${built-clean.properties}" quiet="true"/>
1388 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1389 <echo level="warn" message="Cycle detected: rozsirene-atributy-jedit was already built"/>
1391 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1392 <mkdir dir="${build.dir}"/>
1393 <touch file="${built-clean.properties}" verbose="false"/>
1394 <property file="${built-clean.properties}" prefix="already.built.clean."/>
1395 <antcall target="-warn-already-built-clean"/>
1396 <propertyfile file="${built-clean.properties}">
1397 <entry key="${basedir}" value=""/>
1399 <antcall target="-maybe-call-dep">
1400 <param name="call.built.properties" value="${built-clean.properties}"/>
1401 <param location="${project.rozsirene-atributy}" name="call.subproject"/>
1402 <param location="${project.rozsirene-atributy}/build.xml" name="call.script"/>
1403 <param name="call.target" value="clean"/>
1404 <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1405 <param name="transfer.not.archive.disabled" value="true"/>
1408 <target depends="init" name="-do-clean">
1409 <delete dir="${build.dir}"/>
1410 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1412 <target name="-post-clean">
1413 <!-- Empty placeholder for easier customization. -->
1414 <!-- You can override this target in the ../build.xml file. -->
1416 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1417 <target name="-check-call-dep">
1418 <property file="${call.built.properties}" prefix="already.built."/>
1419 <condition property="should.call.dep">
1422 <isset property="already.built.${call.subproject}"/>
1424 <available file="${call.script}"/>
1428 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1429 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1431 <propertyref prefix="transfer."/>
1432 <mapper from="transfer.*" to="*" type="glob"/>