comparison nbproject/build-impl.xml @ 2:09f9f3d5c507

CM-127: Move wsdlsetup and wsd2html.xsl from Tools
author smith@nwoca.org
date Tue, 07 Jun 2011 18:06:07 -0400
parents 1918a6aed50a
children de1522a9d4bc
comparison
equal deleted inserted replaced
1:82fc5e17cc59 2:09f9f3d5c507
55 <property file="nbproject/configs/${config}.properties"/> 55 <property file="nbproject/configs/${config}.properties"/>
56 <property file="nbproject/project.properties"/> 56 <property file="nbproject/project.properties"/>
57 </target> 57 </target>
58 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-ivy-retrieve" name="-do-init"> 58 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-ivy-retrieve" name="-do-init">
59 <available file="${manifest.file}" property="manifest.available"/> 59 <available file="${manifest.file}" property="manifest.available"/>
60 <available file="${application.splash}" property="splashscreen.available"/> 60 <condition property="splashscreen.available">
61 <and>
62 <not>
63 <equals arg1="${application.splash}" arg2="" trim="true"/>
64 </not>
65 <available file="${application.splash}"/>
66 </and>
67 </condition>
61 <condition property="main.class.available"> 68 <condition property="main.class.available">
62 <and> 69 <and>
63 <isset property="main.class"/> 70 <isset property="main.class"/>
64 <not> 71 <not>
65 <equals arg1="${main.class}" arg2="" trim="true"/> 72 <equals arg1="${main.class}" arg2="" trim="true"/>
70 <and> 77 <and>
71 <isset property="manifest.available"/> 78 <isset property="manifest.available"/>
72 <isset property="main.class.available"/> 79 <isset property="main.class.available"/>
73 </and> 80 </and>
74 </condition> 81 </condition>
82 <condition property="do.archive">
83 <not>
84 <istrue value="${jar.archive.disabled}"/>
85 </not>
86 </condition>
75 <condition property="do.mkdist"> 87 <condition property="do.mkdist">
76 <and> 88 <and>
89 <isset property="do.archive"/>
77 <isset property="libs.CopyLibs.classpath"/> 90 <isset property="libs.CopyLibs.classpath"/>
78 <not> 91 <not>
79 <istrue value="${mkdist.disabled}"/> 92 <istrue value="${mkdist.disabled}"/>
80 </not> 93 </not>
81 </and> 94 </and>
84 <and> 97 <and>
85 <istrue value="${manifest.available+main.class}"/> 98 <istrue value="${manifest.available+main.class}"/>
86 <isset property="do.mkdist"/> 99 <isset property="do.mkdist"/>
87 </and> 100 </and>
88 </condition> 101 </condition>
89 <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
90 <and>
91 <istrue value="${manifest.available+main.class+mkdist.available}"/>
92 <istrue value="${splashscreen.available}"/>
93 </and>
94 </condition>
95 <condition property="do.archive">
96 <not>
97 <istrue value="${jar.archive.disabled}"/>
98 </not>
99 </condition>
100 <condition property="do.archive+manifest.available"> 102 <condition property="do.archive+manifest.available">
101 <and> 103 <and>
102 <isset property="manifest.available"/> 104 <isset property="manifest.available"/>
103 <istrue value="${do.archive}"/> 105 <istrue value="${do.archive}"/>
104 </and> 106 </and>
105 </condition> 107 </condition>
108 <condition property="do.archive+main.class.available">
109 <and>
110 <isset property="main.class.available"/>
111 <istrue value="${do.archive}"/>
112 </and>
113 </condition>
114 <condition property="do.archive+splashscreen.available">
115 <and>
116 <isset property="splashscreen.available"/>
117 <istrue value="${do.archive}"/>
118 </and>
119 </condition>
106 <condition property="do.archive+manifest.available+main.class"> 120 <condition property="do.archive+manifest.available+main.class">
107 <and> 121 <and>
108 <istrue value="${manifest.available+main.class}"/> 122 <istrue value="${manifest.available+main.class}"/>
109 <istrue value="${do.archive}"/> 123 <istrue value="${do.archive}"/>
110 </and> 124 </and>
111 </condition> 125 </condition>
112 <condition property="do.archive+manifest.available+main.class+mkdist.available"> 126 <condition property="manifest.available-mkdist.available">
113 <and> 127 <or>
114 <istrue value="${manifest.available+main.class+mkdist.available}"/> 128 <istrue value="${manifest.available}"/>
115 <istrue value="${do.archive}"/> 129 <isset property="do.mkdist"/>
116 </and> 130 </or>
117 </condition> 131 </condition>
118 <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available"> 132 <condition property="manifest.available+main.class-mkdist.available">
119 <and> 133 <or>
120 <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/> 134 <istrue value="${manifest.available+main.class}"/>
121 <istrue value="${do.archive}"/> 135 <isset property="do.mkdist"/>
122 </and> 136 </or>
123 </condition> 137 </condition>
124 <condition property="have.tests"> 138 <condition property="have.tests">
125 <or> 139 <or>
126 <available file="${test.src.dir}"/> 140 <available file="${test.src.dir}"/>
127 </or> 141 </or>
173 </condition> 187 </condition>
174 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> 188 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
175 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> 189 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
176 <length length="0" string="${endorsed.classpath}" when="greater"/> 190 <length length="0" string="${endorsed.classpath}" when="greater"/>
177 </condition> 191 </condition>
178 <property name="javac.fork" value="false"/> 192 <condition else="false" property="jdkBug6558476">
193 <and>
194 <matches pattern="1\.[56]" string="${java.specification.version}"/>
195 <not>
196 <os family="unix"/>
197 </not>
198 </and>
199 </condition>
200 <property name="javac.fork" value="${jdkBug6558476}"/>
179 <property name="jar.index" value="false"/> 201 <property name="jar.index" value="false"/>
202 <property name="jar.index.metainf" value="${jar.index}"/>
180 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> 203 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
181 </target> 204 </target>
182 <target name="-post-init"> 205 <target name="-post-init">
183 <!-- Empty placeholder for easier customization. --> 206 <!-- Empty placeholder for easier customization. -->
184 <!-- You can override this target in the ../build.xml file. --> 207 <!-- You can override this target in the ../build.xml file. -->
302 <tempfile deleteonexit="true" property="javac.includesfile.binary"/> 325 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
303 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> 326 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
304 <delete> 327 <delete>
305 <files includesfile="${javac.includesfile.binary}"/> 328 <files includesfile="${javac.includesfile.binary}"/>
306 </delete> 329 </delete>
307 <delete file="${javac.includesfile.binary}"/> 330 <delete>
331 <fileset file="${javac.includesfile.binary}"/>
332 </delete>
308 </sequential> 333 </sequential>
309 </macrodef> 334 </macrodef>
310 </target> 335 </target>
311 <target name="-init-macrodef-junit"> 336 <target name="-init-macrodef-junit">
312 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> 337 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
313 <attribute default="${includes}" name="includes"/> 338 <attribute default="${includes}" name="includes"/>
314 <attribute default="${excludes}" name="excludes"/> 339 <attribute default="${excludes}" name="excludes"/>
315 <attribute default="**" name="testincludes"/> 340 <attribute default="**" name="testincludes"/>
316 <sequential> 341 <sequential>
317 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}"> 342 <property name="junit.forkmode" value="perTest"/>
343 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
318 <batchtest todir="${build.test.results.dir}"> 344 <batchtest todir="${build.test.results.dir}">
319 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> 345 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
320 <filename name="@{testincludes}"/> 346 <filename name="@{testincludes}"/>
321 </fileset> 347 </fileset>
322 </batchtest> 348 </batchtest>
328 <mapper from="test-sys-prop.*" to="*" type="glob"/> 354 <mapper from="test-sys-prop.*" to="*" type="glob"/>
329 </syspropertyset> 355 </syspropertyset>
330 <formatter type="brief" usefile="false"/> 356 <formatter type="brief" usefile="false"/>
331 <formatter type="xml"/> 357 <formatter type="xml"/>
332 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 358 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
359 <jvmarg value="-ea"/>
333 <jvmarg line="${run.jvmargs}"/> 360 <jvmarg line="${run.jvmargs}"/>
334 </junit> 361 </junit>
335 </sequential> 362 </sequential>
336 </macrodef> 363 </macrodef>
364 </target>
365 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
366 <target name="-profile-pre-init">
367 <!-- Empty placeholder for easier customization. -->
368 <!-- You can override this target in the ../build.xml file. -->
369 </target>
370 <target name="-profile-post-init">
371 <!-- Empty placeholder for easier customization. -->
372 <!-- You can override this target in the ../build.xml file. -->
373 </target>
374 <target name="-profile-init-macrodef-profile">
375 <macrodef name="resolve">
376 <attribute name="name"/>
377 <attribute name="value"/>
378 <sequential>
379 <property name="@{name}" value="${env.@{value}}"/>
380 </sequential>
381 </macrodef>
382 <macrodef name="profile">
383 <attribute default="${main.class}" name="classname"/>
384 <element name="customize" optional="true"/>
385 <sequential>
386 <property environment="env"/>
387 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
388 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
389 <jvmarg value="${profiler.info.jvmargs.agent}"/>
390 <jvmarg line="${profiler.info.jvmargs}"/>
391 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
392 <arg line="${application.args}"/>
393 <classpath>
394 <path path="${run.classpath}"/>
395 </classpath>
396 <syspropertyset>
397 <propertyref prefix="run-sys-prop."/>
398 <mapper from="run-sys-prop.*" to="*" type="glob"/>
399 </syspropertyset>
400 <customize/>
401 </java>
402 </sequential>
403 </macrodef>
404 </target>
405 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
406 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
407 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
337 </target> 408 </target>
338 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> 409 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
339 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> 410 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
340 <attribute default="${main.class}" name="name"/> 411 <attribute default="${main.class}" name="name"/>
341 <attribute default="${debug.classpath}" name="classpath"/> 412 <attribute default="${debug.classpath}" name="classpath"/>
427 </sequential> 498 </sequential>
428 </macrodef> 499 </macrodef>
429 </target> 500 </target>
430 <target name="-init-macrodef-copylibs"> 501 <target name="-init-macrodef-copylibs">
431 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> 502 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
503 <attribute default="${manifest.file}" name="manifest"/>
432 <element name="customize" optional="true"/> 504 <element name="customize" optional="true"/>
433 <sequential> 505 <sequential>
434 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> 506 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
435 <pathconvert property="run.classpath.without.build.classes.dir"> 507 <pathconvert property="run.classpath.without.build.classes.dir">
436 <path path="${run.classpath}"/> 508 <path path="${run.classpath}"/>
442 <flattenmapper/> 514 <flattenmapper/>
443 <globmapper from="*" to="lib/*"/> 515 <globmapper from="*" to="lib/*"/>
444 </chainedmapper> 516 </chainedmapper>
445 </pathconvert> 517 </pathconvert>
446 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> 518 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
447 <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> 519 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
448 <fileset dir="${build.classes.dir}"/> 520 <fileset dir="${build.classes.dir}"/>
449 <manifest> 521 <manifest>
450 <attribute name="Class-Path" value="${jar.classpath}"/> 522 <attribute name="Class-Path" value="${jar.classpath}"/>
451 <customize/> 523 <customize/>
452 </manifest> 524 </manifest>
571 </target> 643 </target>
572 <target name="-pre-jar"> 644 <target name="-pre-jar">
573 <!-- Empty placeholder for easier customization. --> 645 <!-- Empty placeholder for easier customization. -->
574 <!-- You can override this target in the ../build.xml file. --> 646 <!-- You can override this target in the ../build.xml file. -->
575 </target> 647 </target>
576 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available"> 648 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
577 <j2seproject1:jar/> 649 <j2seproject1:jar/>
578 </target> 650 </target>
579 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> 651 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
580 <j2seproject1:jar manifest="${manifest.file}"/> 652 <j2seproject1:jar manifest="${manifest.file}"/>
581 </target> 653 </target>
582 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> 654 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
583 <j2seproject1:jar manifest="${manifest.file}"> 655 <j2seproject1:jar manifest="${manifest.file}">
584 <j2seproject1:manifest> 656 <j2seproject1:manifest>
585 <j2seproject1:attribute name="Main-Class" value="${main.class}"/> 657 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
586 </j2seproject1:manifest> 658 </j2seproject1:manifest>
587 </j2seproject1:jar> 659 </j2seproject1:jar>
588 <echo>To run this application from the command line without Ant, try:</echo> 660 <echo level="info">To run this application from the command line without Ant, try:</echo>
589 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> 661 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
590 <property location="${dist.jar}" name="dist.jar.resolved"/> 662 <property location="${dist.jar}" name="dist.jar.resolved"/>
591 <pathconvert property="run.classpath.with.dist.jar"> 663 <pathconvert property="run.classpath.with.dist.jar">
592 <path path="${run.classpath}"/> 664 <path path="${run.classpath}"/>
593 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> 665 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
594 </pathconvert> 666 </pathconvert>
595 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> 667 <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
596 </target> 668 </target>
597 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen"> 669 <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
670 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
671 <touch file="${tmp.manifest.file}" verbose="false"/>
672 </target>
673 <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
674 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
675 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
676 </target>
677 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
678 <manifest file="${tmp.manifest.file}" mode="update">
679 <attribute name="Main-Class" value="${main.class}"/>
680 </manifest>
681 </target>
682 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
598 <basename file="${application.splash}" property="splashscreen.basename"/> 683 <basename file="${application.splash}" property="splashscreen.basename"/>
599 <mkdir dir="${build.classes.dir}/META-INF"/> 684 <mkdir dir="${build.classes.dir}/META-INF"/>
600 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> 685 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
601 <j2seproject3:copylibs> 686 <manifest file="${tmp.manifest.file}" mode="update">
602 <customize> 687 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
603 <attribute name="Main-Class" value="${main.class}"/> 688 </manifest>
604 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> 689 </target>
605 </customize> 690 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
606 </j2seproject3:copylibs> 691 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
607 <echo>To run this application from the command line without Ant, try:</echo> 692 <echo level="info">To run this application from the command line without Ant, try:</echo>
608 <property location="${dist.jar}" name="dist.jar.resolved"/> 693 <property location="${dist.jar}" name="dist.jar.resolved"/>
609 <echo>java -jar "${dist.jar.resolved}"</echo> 694 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
610 </target> 695 </target>
611 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available"> 696 <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
612 <j2seproject3:copylibs> 697 <delete>
613 <customize> 698 <fileset file="${tmp.manifest.file}"/>
614 <attribute name="Main-Class" value="${main.class}"/> 699 </delete>
615 </customize> 700 </target>
616 </j2seproject3:copylibs> 701 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
617 <echo>To run this application from the command line without Ant, try:</echo>
618 <property location="${dist.jar}" name="dist.jar.resolved"/>
619 <echo>java -jar "${dist.jar.resolved}"</echo>
620 </target>
621 <target name="-post-jar"> 702 <target name="-post-jar">
622 <!-- Empty placeholder for easier customization. --> 703 <!-- Empty placeholder for easier customization. -->
623 <!-- You can override this target in the ../build.xml file. --> 704 <!-- You can override this target in the ../build.xml file. -->
624 </target> 705 </target>
625 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar,-ivy-publish" description="Build JAR." name="jar"/> 706 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar,-ivy-publish" description="Build JAR." name="jar"/>
626 <!-- 707 <!--
627 ================= 708 =================
628 EXECUTION SECTION 709 EXECUTION SECTION
629 ================= 710 =================
630 --> 711 -->
685 </target> 766 </target>
686 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> 767 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
687 <j2seproject1:nbjpdareload/> 768 <j2seproject1:nbjpdareload/>
688 </target> 769 </target>
689 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> 770 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
771 <!--
772 =================
773 PROFILING SECTION
774 =================
775 -->
776 <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
777 <nbprofiledirect>
778 <classpath>
779 <path path="${run.classpath}"/>
780 </classpath>
781 </nbprofiledirect>
782 <profile/>
783 </target>
784 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
785 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
786 <nbprofiledirect>
787 <classpath>
788 <path path="${run.classpath}"/>
789 </classpath>
790 </nbprofiledirect>
791 <profile classname="${profile.class}"/>
792 </target>
793 <!--
794 =========================
795 APPLET PROFILING SECTION
796 =========================
797 -->
798 <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
799 <nbprofiledirect>
800 <classpath>
801 <path path="${run.classpath}"/>
802 </classpath>
803 </nbprofiledirect>
804 <profile classname="sun.applet.AppletViewer">
805 <customize>
806 <arg value="${applet.url}"/>
807 </customize>
808 </profile>
809 </target>
810 <!--
811 =========================
812 TESTS PROFILING SECTION
813 =========================
814 -->
815 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
816 <nbprofiledirect>
817 <classpath>
818 <path path="${run.test.classpath}"/>
819 </classpath>
820 </nbprofiledirect>
821 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
822 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
823 <jvmarg value="${profiler.info.jvmargs.agent}"/>
824 <jvmarg line="${profiler.info.jvmargs}"/>
825 <test name="${profile.class}"/>
826 <classpath>
827 <path path="${run.test.classpath}"/>
828 </classpath>
829 <syspropertyset>
830 <propertyref prefix="test-sys-prop."/>
831 <mapper from="test-sys-prop.*" to="*" type="glob"/>
832 </syspropertyset>
833 <formatter type="brief" usefile="false"/>
834 <formatter type="xml"/>
835 </junit>
836 </target>
690 <!-- 837 <!--
691 =============== 838 ===============
692 JAVADOC SECTION 839 JAVADOC SECTION
693 =============== 840 ===============
694 --> 841 -->
731 <!-- You can override this target in the ../build.xml file. --> 878 <!-- You can override this target in the ../build.xml file. -->
732 </target> 879 </target>
733 <target if="do.depend.true" name="-compile-test-depend"> 880 <target if="do.depend.true" name="-compile-test-depend">
734 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> 881 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
735 </target> 882 </target>
736 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> 883 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
737 <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}"/> 884 <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}"/>
738 <copy todir="${build.test.classes.dir}"> 885 <copy todir="${build.test.classes.dir}">
739 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 886 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
740 </copy> 887 </copy>
741 </target> 888 </target>
746 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> 893 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
747 <target name="-pre-compile-test-single"> 894 <target name="-pre-compile-test-single">
748 <!-- Empty placeholder for easier customization. --> 895 <!-- Empty placeholder for easier customization. -->
749 <!-- You can override this target in the ../build.xml file. --> 896 <!-- You can override this target in the ../build.xml file. -->
750 </target> 897 </target>
751 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> 898 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
752 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> 899 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
753 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> 900 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
754 <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}"/> 901 <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}"/>
755 <copy todir="${build.test.classes.dir}"> 902 <copy todir="${build.test.classes.dir}">
756 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 903 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>