1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/friendpackage/nbproject/build-impl.xml Sat Jun 14 09:50:27 2008 +0200
1.3 @@ -0,0 +1,542 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!--
1.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
1.7 +*** EDIT ../build.xml INSTEAD ***
1.8 +
1.9 +For the purpose of easier reading the script
1.10 +is divided into following sections:
1.11 +
1.12 + - initialization
1.13 + - compilation
1.14 + - jar
1.15 + - execution
1.16 + - debugging
1.17 + - javadoc
1.18 + - junit compilation
1.19 + - junit execution
1.20 + - junit debugging
1.21 + - applet
1.22 + - cleanup
1.23 +
1.24 +-->
1.25 +<project name="friendpackage-impl" default="default" basedir=".." xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1">
1.26 + <target name="default" depends="test,jar,javadoc" description="Build and test whole project."/>
1.27 + <!--
1.28 + ======================
1.29 + INITIALIZATION SECTION
1.30 + ======================
1.31 + -->
1.32 + <target name="-pre-init">
1.33 + <!-- Empty placeholder for easier customization. -->
1.34 + <!-- You can override this target in the ../build.xml file. -->
1.35 + </target>
1.36 + <target name="-init-private" depends="-pre-init">
1.37 + <property file="nbproject/private/private.properties"/>
1.38 + </target>
1.39 + <target name="-init-user" depends="-pre-init,-init-private">
1.40 + <property file="${user.properties.file}"/>
1.41 + <!-- The two properties below are usually overridden -->
1.42 + <!-- by the active platform. Just a fallback. -->
1.43 + <property name="default.javac.source" value="1.4"/>
1.44 + <property name="default.javac.target" value="1.4"/>
1.45 + </target>
1.46 + <target name="-init-project" depends="-pre-init,-init-private,-init-user">
1.47 + <property file="nbproject/project.properties"/>
1.48 + </target>
1.49 + <target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property">
1.50 + <available file="${manifest.file}" property="manifest.available"/>
1.51 + <condition property="manifest.available+main.class">
1.52 + <and>
1.53 + <isset property="manifest.available"/>
1.54 + <isset property="main.class"/>
1.55 + <not>
1.56 + <equals arg1="${main.class}" arg2="" trim="true"/>
1.57 + </not>
1.58 + </and>
1.59 + </condition>
1.60 + <condition property="manifest.available+main.class+mkdist.available">
1.61 + <and>
1.62 + <istrue value="${manifest.available+main.class}"/>
1.63 + <isset property="libs.CopyLibs.classpath"/>
1.64 + </and>
1.65 + </condition>
1.66 + <condition property="have.tests">
1.67 + <or>
1.68 + <available file="${test.src.dir}"/>
1.69 + </or>
1.70 + </condition>
1.71 + <condition property="have.sources">
1.72 + <or>
1.73 + <available file="${src.dir}"/>
1.74 + </or>
1.75 + </condition>
1.76 + <condition property="netbeans.home+have.tests">
1.77 + <and>
1.78 + <isset property="netbeans.home"/>
1.79 + <isset property="have.tests"/>
1.80 + </and>
1.81 + </condition>
1.82 + <condition property="no.javadoc.preview">
1.83 + <isfalse value="${javadoc.preview}"/>
1.84 + </condition>
1.85 + <property name="run.jvmargs" value=""/>
1.86 + <property name="javac.compilerargs" value=""/>
1.87 + <property name="work.dir" value="${basedir}"/>
1.88 + <condition property="no.deps">
1.89 + <and>
1.90 + <istrue value="${no.dependencies}"/>
1.91 + </and>
1.92 + </condition>
1.93 + <property name="javac.debug" value="true"/>
1.94 + <property name="javadoc.preview" value="true"/>
1.95 + <property name="application.args" value=""/>
1.96 + </target>
1.97 + <target name="-post-init">
1.98 + <!-- Empty placeholder for easier customization. -->
1.99 + <!-- You can override this target in the ../build.xml file. -->
1.100 + </target>
1.101 + <target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
1.102 + <fail unless="src.dir">Must set src.dir</fail>
1.103 + <fail unless="test.src.dir">Must set test.src.dir</fail>
1.104 + <fail unless="build.dir">Must set build.dir</fail>
1.105 + <fail unless="dist.dir">Must set dist.dir</fail>
1.106 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
1.107 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
1.108 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
1.109 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
1.110 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
1.111 + <fail unless="dist.jar">Must set dist.jar</fail>
1.112 + </target>
1.113 + <target name="-init-macrodef-property">
1.114 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
1.115 + <attribute name="name"/>
1.116 + <attribute name="value"/>
1.117 + <sequential>
1.118 + <property name="@{name}" value="${@{value}}"/>
1.119 + </sequential>
1.120 + </macrodef>
1.121 + </target>
1.122 + <target name="-init-macrodef-javac">
1.123 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
1.124 + <attribute name="srcdir" default="${src.dir}"/>
1.125 + <attribute name="destdir" default="${build.classes.dir}"/>
1.126 + <attribute name="classpath" default="${javac.classpath}"/>
1.127 + <attribute name="debug" default="${javac.debug}"/>
1.128 + <element name="customize" optional="true"/>
1.129 + <sequential>
1.130 + <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
1.131 + <classpath>
1.132 + <path path="@{classpath}"/>
1.133 + </classpath>
1.134 + <compilerarg line="${javac.compilerargs}"/>
1.135 + <customize/>
1.136 + </javac>
1.137 + </sequential>
1.138 + </macrodef>
1.139 + </target>
1.140 + <target name="-init-macrodef-junit">
1.141 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
1.142 + <attribute name="includes" default="**/*Test.java"/>
1.143 + <sequential>
1.144 + <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
1.145 + <batchtest todir="${build.test.results.dir}">
1.146 + <fileset dir="${test.src.dir}" includes="@{includes}"/>
1.147 + </batchtest>
1.148 + <classpath>
1.149 + <path path="${run.test.classpath}"/>
1.150 + </classpath>
1.151 + <syspropertyset>
1.152 + <propertyref prefix="test-sys-prop."/>
1.153 + <mapper type="glob" from="test-sys-prop.*" to="*"/>
1.154 + </syspropertyset>
1.155 + <formatter type="brief" usefile="false"/>
1.156 + <formatter type="xml"/>
1.157 + <jvmarg line="${run.jvmargs}"/>
1.158 + </junit>
1.159 + </sequential>
1.160 + </macrodef>
1.161 + </target>
1.162 + <target name="-init-macrodef-nbjpda">
1.163 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
1.164 + <attribute name="name" default="${main.class}"/>
1.165 + <attribute name="classpath" default="${debug.classpath}"/>
1.166 + <attribute name="stopclassname" default=""/>
1.167 + <sequential>
1.168 + <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}">
1.169 + <classpath>
1.170 + <path path="@{classpath}"/>
1.171 + </classpath>
1.172 + </nbjpdastart>
1.173 + </sequential>
1.174 + </macrodef>
1.175 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
1.176 + <attribute name="dir" default="${build.classes.dir}"/>
1.177 + <sequential>
1.178 + <nbjpdareload>
1.179 + <fileset includes="${fix.includes}*.class" dir="@{dir}"/>
1.180 + </nbjpdareload>
1.181 + </sequential>
1.182 + </macrodef>
1.183 + </target>
1.184 + <target name="-init-macrodef-debug">
1.185 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.186 + <attribute name="classname" default="${main.class}"/>
1.187 + <attribute name="classpath" default="${debug.classpath}"/>
1.188 + <element name="customize" optional="true"/>
1.189 + <sequential>
1.190 + <java fork="true" classname="@{classname}" dir="${work.dir}">
1.191 + <jvmarg value="-Xdebug"/>
1.192 + <jvmarg value="-Xnoagent"/>
1.193 + <jvmarg value="-Djava.compiler=none"/>
1.194 + <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
1.195 + <jvmarg line="${run.jvmargs}"/>
1.196 + <classpath>
1.197 + <path path="@{classpath}"/>
1.198 + </classpath>
1.199 + <syspropertyset>
1.200 + <propertyref prefix="run-sys-prop."/>
1.201 + <mapper type="glob" from="run-sys-prop.*" to="*"/>
1.202 + </syspropertyset>
1.203 + <customize/>
1.204 + </java>
1.205 + </sequential>
1.206 + </macrodef>
1.207 + </target>
1.208 + <target name="-init-macrodef-java">
1.209 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
1.210 + <attribute name="classname" default="${main.class}"/>
1.211 + <element name="customize" optional="true"/>
1.212 + <sequential>
1.213 + <java fork="true" classname="@{classname}" dir="${work.dir}">
1.214 + <jvmarg line="${run.jvmargs}"/>
1.215 + <classpath>
1.216 + <path path="${run.classpath}"/>
1.217 + </classpath>
1.218 + <syspropertyset>
1.219 + <propertyref prefix="run-sys-prop."/>
1.220 + <mapper type="glob" from="run-sys-prop.*" to="*"/>
1.221 + </syspropertyset>
1.222 + <customize/>
1.223 + </java>
1.224 + </sequential>
1.225 + </macrodef>
1.226 + </target>
1.227 + <target name="-init-presetdef-jar">
1.228 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
1.229 + <jar jarfile="${dist.jar}" compress="${jar.compress}">
1.230 + <j2seproject1:fileset dir="${build.classes.dir}"/>
1.231 + </jar>
1.232 + </presetdef>
1.233 + </target>
1.234 + <target name="init" depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar"/>
1.235 + <!--
1.236 + ===================
1.237 + COMPILATION SECTION
1.238 + ===================
1.239 + -->
1.240 + <target name="deps-jar" depends="init" unless="no.deps"/>
1.241 + <target name="-pre-pre-compile" depends="init,deps-jar">
1.242 + <mkdir dir="${build.classes.dir}"/>
1.243 + </target>
1.244 + <target name="-pre-compile">
1.245 + <!-- Empty placeholder for easier customization. -->
1.246 + <!-- You can override this target in the ../build.xml file. -->
1.247 + </target>
1.248 + <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources">
1.249 + <j2seproject3:javac/>
1.250 + <copy todir="${build.classes.dir}">
1.251 + <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
1.252 + </copy>
1.253 + </target>
1.254 + <target name="-post-compile">
1.255 + <!-- Empty placeholder for easier customization. -->
1.256 + <!-- You can override this target in the ../build.xml file. -->
1.257 + </target>
1.258 + <target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
1.259 + <target name="-pre-compile-single">
1.260 + <!-- Empty placeholder for easier customization. -->
1.261 + <!-- You can override this target in the ../build.xml file. -->
1.262 + </target>
1.263 + <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
1.264 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.265 + <j2seproject3:javac>
1.266 + <customize>
1.267 + <patternset includes="${javac.includes}"/>
1.268 + </customize>
1.269 + </j2seproject3:javac>
1.270 + </target>
1.271 + <target name="-post-compile-single">
1.272 + <!-- Empty placeholder for easier customization. -->
1.273 + <!-- You can override this target in the ../build.xml file. -->
1.274 + </target>
1.275 + <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
1.276 + <!--
1.277 + ====================
1.278 + JAR BUILDING SECTION
1.279 + ====================
1.280 + -->
1.281 + <target name="-pre-pre-jar" depends="init">
1.282 + <dirname property="dist.jar.dir" file="${dist.jar}"/>
1.283 + <mkdir dir="${dist.jar.dir}"/>
1.284 + </target>
1.285 + <target name="-pre-jar">
1.286 + <!-- Empty placeholder for easier customization. -->
1.287 + <!-- You can override this target in the ../build.xml file. -->
1.288 + </target>
1.289 + <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
1.290 + <j2seproject1:jar/>
1.291 + </target>
1.292 + <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
1.293 + <j2seproject1:jar manifest="${manifest.file}"/>
1.294 + </target>
1.295 + <target name="-do-jar-with-mainclass" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" unless="manifest.available+main.class+mkdist.available">
1.296 + <j2seproject1:jar manifest="${manifest.file}">
1.297 + <j2seproject1:manifest>
1.298 + <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
1.299 + </j2seproject1:manifest>
1.300 + </j2seproject1:jar>
1.301 + <echo>To run this application from the command line without Ant, try:</echo>
1.302 + <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
1.303 + <property name="dist.jar.resolved" location="${dist.jar}"/>
1.304 + <pathconvert property="run.classpath.with.dist.jar">
1.305 + <path path="${run.classpath}"/>
1.306 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1.307 + </pathconvert>
1.308 + <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
1.309 + </target>
1.310 + <target name="-do-jar-with-libraries" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available">
1.311 + <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
1.312 + <pathconvert property="run.classpath.without.build.classes.dir">
1.313 + <path path="${run.classpath}"/>
1.314 + <map from="${build.classes.dir.resolved}" to=""/>
1.315 + </pathconvert>
1.316 + <pathconvert property="jar.classpath" pathsep=" ">
1.317 + <path path="${run.classpath.without.build.classes.dir}"/>
1.318 + <chainedmapper>
1.319 + <flattenmapper/>
1.320 + <globmapper from="*" to="lib/*"/>
1.321 + </chainedmapper>
1.322 + </pathconvert>
1.323 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" name="copylibs" classpath="${libs.CopyLibs.classpath}"/>
1.324 + <copylibs manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}" jarfile="${dist.jar}" compress="${jar.compress}">
1.325 + <fileset dir="${build.classes.dir}"/>
1.326 + <manifest>
1.327 + <attribute name="Main-Class" value="${main.class}"/>
1.328 + <attribute name="Class-Path" value="${jar.classpath}"/>
1.329 + </manifest>
1.330 + </copylibs>
1.331 + <echo>To run this application from the command line without Ant, try:</echo>
1.332 + <property name="dist.jar.resolved" location="${dist.jar}"/>
1.333 + <echo>java -jar "${dist.jar.resolved}"</echo>
1.334 + </target>
1.335 + <target name="-post-jar">
1.336 + <!-- Empty placeholder for easier customization. -->
1.337 + <!-- You can override this target in the ../build.xml file. -->
1.338 + </target>
1.339 + <target name="jar" depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR."/>
1.340 + <!--
1.341 + =================
1.342 + EXECUTION SECTION
1.343 + =================
1.344 + -->
1.345 + <target name="run" depends="init,compile" description="Run a main class.">
1.346 + <j2seproject1:java>
1.347 + <customize>
1.348 + <arg line="${application.args}"/>
1.349 + </customize>
1.350 + </j2seproject1:java>
1.351 + </target>
1.352 + <target name="run-single" depends="init,compile-single">
1.353 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1.354 + <j2seproject1:java classname="${run.class}"/>
1.355 + </target>
1.356 + <!--
1.357 + =================
1.358 + DEBUGGING SECTION
1.359 + =================
1.360 + -->
1.361 + <target name="-debug-start-debugger" if="netbeans.home" depends="init">
1.362 + <j2seproject1:nbjpdastart name="${debug.class}"/>
1.363 + </target>
1.364 + <target name="-debug-start-debuggee" depends="init,compile">
1.365 + <j2seproject3:debug>
1.366 + <customize>
1.367 + <arg line="${application.args}"/>
1.368 + </customize>
1.369 + </j2seproject3:debug>
1.370 + </target>
1.371 + <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
1.372 + <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
1.373 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1.374 + </target>
1.375 + <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
1.376 + <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
1.377 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1.378 + <j2seproject3:debug classname="${debug.class}"/>
1.379 + </target>
1.380 + <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
1.381 + <target name="-pre-debug-fix" depends="init">
1.382 + <fail unless="fix.includes">Must set fix.includes</fail>
1.383 + <property name="javac.includes" value="${fix.includes}.java"/>
1.384 + </target>
1.385 + <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
1.386 + <j2seproject1:nbjpdareload/>
1.387 + </target>
1.388 + <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
1.389 + <!--
1.390 + ===============
1.391 + JAVADOC SECTION
1.392 + ===============
1.393 + -->
1.394 + <target name="-javadoc-build" depends="init">
1.395 + <mkdir dir="${dist.javadoc.dir}"/>
1.396 + <javadoc destdir="${dist.javadoc.dir}" source="${javac.source}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}" additionalparam="${javadoc.additionalparam}" failonerror="true" useexternalfile="true">
1.397 + <classpath>
1.398 + <path path="${javac.classpath}"/>
1.399 + </classpath>
1.400 + <sourcepath>
1.401 + <pathelement location="${src.dir}"/>
1.402 + </sourcepath>
1.403 + <packageset dir="${src.dir}" includes="*/**"/>
1.404 + <fileset dir="${src.dir}" includes="*.java"/>
1.405 + </javadoc>
1.406 + </target>
1.407 + <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
1.408 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1.409 + </target>
1.410 + <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
1.411 + <!--
1.412 + =========================
1.413 + JUNIT COMPILATION SECTION
1.414 + =========================
1.415 + -->
1.416 + <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
1.417 + <mkdir dir="${build.test.classes.dir}"/>
1.418 + </target>
1.419 + <target name="-pre-compile-test">
1.420 + <!-- Empty placeholder for easier customization. -->
1.421 + <!-- You can override this target in the ../build.xml file. -->
1.422 + </target>
1.423 + <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
1.424 + <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
1.425 + <copy todir="${build.test.classes.dir}">
1.426 + <fileset dir="${test.src.dir}" excludes="**/*.java"/>
1.427 + </copy>
1.428 + </target>
1.429 + <target name="-post-compile-test">
1.430 + <!-- Empty placeholder for easier customization. -->
1.431 + <!-- You can override this target in the ../build.xml file. -->
1.432 + </target>
1.433 + <target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
1.434 + <target name="-pre-compile-test-single">
1.435 + <!-- Empty placeholder for easier customization. -->
1.436 + <!-- You can override this target in the ../build.xml file. -->
1.437 + </target>
1.438 + <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
1.439 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.440 + <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
1.441 + <customize>
1.442 + <patternset includes="${javac.includes}"/>
1.443 + </customize>
1.444 + </j2seproject3:javac>
1.445 + <copy todir="${build.test.classes.dir}">
1.446 + <fileset dir="${test.src.dir}" excludes="**/*.java"/>
1.447 + </copy>
1.448 + </target>
1.449 + <target name="-post-compile-test-single">
1.450 + <!-- Empty placeholder for easier customization. -->
1.451 + <!-- You can override this target in the ../build.xml file. -->
1.452 + </target>
1.453 + <target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/>
1.454 + <!--
1.455 + =======================
1.456 + JUNIT EXECUTION SECTION
1.457 + =======================
1.458 + -->
1.459 + <target name="-pre-test-run" if="have.tests" depends="init">
1.460 + <mkdir dir="${build.test.results.dir}"/>
1.461 + </target>
1.462 + <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
1.463 + <j2seproject3:junit/>
1.464 + </target>
1.465 + <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
1.466 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.467 + </target>
1.468 + <target name="test-report" if="have.tests" depends="init"/>
1.469 + <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
1.470 + <target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
1.471 + <target name="-pre-test-run-single" if="have.tests" depends="init">
1.472 + <mkdir dir="${build.test.results.dir}"/>
1.473 + </target>
1.474 + <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
1.475 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1.476 + <j2seproject3:junit includes="${test.includes}"/>
1.477 + </target>
1.478 + <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
1.479 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.480 + </target>
1.481 + <target name="test-single" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test."/>
1.482 + <!--
1.483 + =======================
1.484 + JUNIT DEBUGGING SECTION
1.485 + =======================
1.486 + -->
1.487 + <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
1.488 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1.489 + <j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
1.490 + <customize>
1.491 + <arg line="${test.class}"/>
1.492 + </customize>
1.493 + </j2seproject3:debug>
1.494 + </target>
1.495 + <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
1.496 + <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/>
1.497 + </target>
1.498 + <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
1.499 + <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
1.500 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1.501 + </target>
1.502 + <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
1.503 + <!--
1.504 + =========================
1.505 + APPLET EXECUTION SECTION
1.506 + =========================
1.507 + -->
1.508 + <target name="run-applet" depends="init,compile-single">
1.509 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.510 + <j2seproject1:java classname="sun.applet.AppletViewer">
1.511 + <customize>
1.512 + <arg value="${applet.url}"/>
1.513 + </customize>
1.514 + </j2seproject1:java>
1.515 + </target>
1.516 + <!--
1.517 + =========================
1.518 + APPLET DEBUGGING SECTION
1.519 + =========================
1.520 + -->
1.521 + <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
1.522 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.523 + <j2seproject3:debug classname="sun.applet.AppletViewer">
1.524 + <customize>
1.525 + <arg value="${applet.url}"/>
1.526 + </customize>
1.527 + </j2seproject3:debug>
1.528 + </target>
1.529 + <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
1.530 + <!--
1.531 + ===============
1.532 + CLEANUP SECTION
1.533 + ===============
1.534 + -->
1.535 + <target name="deps-clean" depends="init" unless="no.deps"/>
1.536 + <target name="-do-clean" depends="init">
1.537 + <delete dir="${build.dir}"/>
1.538 + <delete dir="${dist.dir}"/>
1.539 + </target>
1.540 + <target name="-post-clean">
1.541 + <!-- Empty placeholder for easier customization. -->
1.542 + <!-- You can override this target in the ../build.xml file. -->
1.543 + </target>
1.544 + <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>
1.545 +</project>