samples/friendpackage/nbproject/build-impl.xml
changeset 35 ecab95a52f10
parent 34 79ac56076198
child 36 850133dd7e4d
     1.1 --- a/samples/friendpackage/nbproject/build-impl.xml	Sat Jun 14 09:51:19 2008 +0200
     1.2 +++ b/samples/friendpackage/nbproject/build-impl.xml	Sat Jun 14 09:51:30 2008 +0200
     1.3 @@ -80,7 +80,10 @@
     1.4              </and>
     1.5          </condition>
     1.6          <condition property="no.javadoc.preview">
     1.7 -            <isfalse value="${javadoc.preview}"/>
     1.8 +            <and>
     1.9 +                <isset property="javadoc.preview"/>
    1.10 +                <isfalse value="${javadoc.preview}"/>
    1.11 +            </and>
    1.12          </condition>
    1.13          <property name="run.jvmargs" value=""/>
    1.14          <property name="javac.compilerargs" value=""/>
    1.15 @@ -94,6 +97,15 @@
    1.16          <property name="javadoc.preview" value="true"/>
    1.17          <property name="application.args" value=""/>
    1.18          <property name="source.encoding" value="${file.encoding}"/>
    1.19 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
    1.20 +            <and>
    1.21 +                <isset property="javadoc.encoding"/>
    1.22 +                <not>
    1.23 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
    1.24 +                </not>
    1.25 +            </and>
    1.26 +        </condition>
    1.27 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
    1.28          <property name="includes" value="**"/>
    1.29          <property name="excludes" value=""/>
    1.30      </target>
    1.31 @@ -130,15 +142,15 @@
    1.32              <attribute default="${includes}" name="includes"/>
    1.33              <attribute default="${excludes}" name="excludes"/>
    1.34              <attribute default="${javac.debug}" name="debug"/>
    1.35 -            <attribute default="${jaxws.endorsed.dir}" name="jaxwsendorsed"/>
    1.36 +            <attribute default="" name="javac.compilerargs.jaxws"/>
    1.37 +            <attribute default="" name="sourcepath"/>
    1.38              <element name="customize" optional="true"/>
    1.39              <sequential>
    1.40 -                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="" srcdir="@{srcdir}" target="${javac.target}">
    1.41 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
    1.42                      <classpath>
    1.43                          <path path="@{classpath}"/>
    1.44                      </classpath>
    1.45 -                    <compilerarg line="-Djava.endorsed.dirs='@{jaxwsendorsed}'"/>
    1.46 -                    <compilerarg line="${javac.compilerargs}"/>
    1.47 +                    <compilerarg line="${javac.compilerargs} @{javac.compilerargs.jaxws}"/>
    1.48                      <customize/>
    1.49                  </javac>
    1.50              </sequential>
    1.51 @@ -176,7 +188,7 @@
    1.52              <attribute default="${includes}" name="includes"/>
    1.53              <attribute default="${excludes}" name="excludes"/>
    1.54              <sequential>
    1.55 -                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
    1.56 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
    1.57                      <batchtest todir="${build.test.results.dir}">
    1.58                          <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
    1.59                              <filename name="**/*Test.java"/>
    1.60 @@ -313,7 +325,7 @@
    1.61      <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
    1.62          <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
    1.63          <j2seproject3:force-recompile/>
    1.64 -        <j2seproject3:javac excludes="" includes="${javac.includes}"/>
    1.65 +        <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
    1.66      </target>
    1.67      <target name="-post-compile-single">
    1.68          <!-- Empty placeholder for easier customization. -->
    1.69 @@ -396,7 +408,10 @@
    1.70              </customize>
    1.71          </j2seproject1:java>
    1.72      </target>
    1.73 -    <target depends="init,compile" name="run-single">
    1.74 +    <target name="-do-not-recompile">
    1.75 +        <property name="javac.includes.binary" value=""/>
    1.76 +    </target>
    1.77 +    <target depends="init,-do-not-recompile,compile-single" name="run-single">
    1.78          <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
    1.79          <j2seproject1:java classname="${run.class}"/>
    1.80      </target>
    1.81 @@ -424,7 +439,7 @@
    1.82          <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
    1.83          <j2seproject3:debug classname="${debug.class}"/>
    1.84      </target>
    1.85 -    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
    1.86 +    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
    1.87      <target depends="init" name="-pre-debug-fix">
    1.88          <fail unless="fix.includes">Must set fix.includes</fail>
    1.89          <property name="javac.includes" value="${fix.includes}.java"/>
    1.90 @@ -440,11 +455,10 @@
    1.91              -->
    1.92      <target depends="init" name="-javadoc-build">
    1.93          <mkdir dir="${dist.javadoc.dir}"/>
    1.94 -        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" destdir="${dist.javadoc.dir}" 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}">
    1.95 +        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" destdir="${dist.javadoc.dir}" 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}">
    1.96              <classpath>
    1.97                  <path path="${javac.classpath}"/>
    1.98              </classpath>
    1.99 -            <packageset dir="${src.dir}" excludes="${excludes}" includes="${includes}"/>
   1.100              <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   1.101                  <filename name="**/*.java"/>
   1.102              </fileset>
   1.103 @@ -485,7 +499,7 @@
   1.104      <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   1.105          <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   1.106          <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
   1.107 -        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
   1.108 +        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
   1.109          <copy todir="${build.test.classes.dir}">
   1.110              <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.111          </copy>
   1.112 @@ -522,7 +536,7 @@
   1.113      <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   1.114          <fail if="tests.failed">Some tests failed; see details above.</fail>
   1.115      </target>
   1.116 -    <target depends="init,compile-test,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
   1.117 +    <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
   1.118      <!--
   1.119                  =======================
   1.120                  JUNIT DEBUGGING SECTION
   1.121 @@ -530,20 +544,26 @@
   1.122              -->
   1.123      <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   1.124          <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   1.125 -        <j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
   1.126 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   1.127 +        <delete file="${test.report.file}"/>
   1.128 +        <mkdir dir="${build.test.results.dir}"/>
   1.129 +        <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
   1.130              <customize>
   1.131                  <syspropertyset>
   1.132                      <propertyref prefix="test-sys-prop."/>
   1.133                      <mapper from="test-sys-prop.*" to="*" type="glob"/>
   1.134                  </syspropertyset>
   1.135 -                <arg line="${test.class}"/>
   1.136 +                <arg value="${test.class}"/>
   1.137 +                <arg value="showoutput=true"/>
   1.138 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   1.139 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   1.140              </customize>
   1.141          </j2seproject3:debug>
   1.142      </target>
   1.143      <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   1.144          <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   1.145      </target>
   1.146 -    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   1.147 +    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   1.148      <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   1.149          <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   1.150      </target>