1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/apifest1/day1/subclassingsolution/nbproject/build-impl.xml Sat Jun 14 09:52:45 2008 +0200
1.3 @@ -0,0 +1,547 @@
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="subclassingsolution-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 + <depend srcdir="@{srcdir}" destdir="@{destdir}" cache="${build.dir}/depcache">
1.131 + <classpath>
1.132 + <path path="@{classpath}"/>
1.133 + </classpath>
1.134 + </depend>
1.135 + <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
1.136 + <classpath>
1.137 + <path path="@{classpath}"/>
1.138 + </classpath>
1.139 + <compilerarg line="${javac.compilerargs}"/>
1.140 + <customize/>
1.141 + </javac>
1.142 + </sequential>
1.143 + </macrodef>
1.144 + </target>
1.145 + <target name="-init-macrodef-junit">
1.146 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
1.147 + <attribute name="includes" default="**/*Test.java"/>
1.148 + <sequential>
1.149 + <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
1.150 + <batchtest todir="${build.test.results.dir}">
1.151 + <fileset dir="${test.src.dir}" includes="@{includes}"/>
1.152 + </batchtest>
1.153 + <classpath>
1.154 + <path path="${run.test.classpath}"/>
1.155 + </classpath>
1.156 + <syspropertyset>
1.157 + <propertyref prefix="test-sys-prop."/>
1.158 + <mapper type="glob" from="test-sys-prop.*" to="*"/>
1.159 + </syspropertyset>
1.160 + <formatter type="brief" usefile="false"/>
1.161 + <formatter type="xml"/>
1.162 + <jvmarg line="${run.jvmargs}"/>
1.163 + </junit>
1.164 + </sequential>
1.165 + </macrodef>
1.166 + </target>
1.167 + <target name="-init-macrodef-nbjpda">
1.168 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
1.169 + <attribute name="name" default="${main.class}"/>
1.170 + <attribute name="classpath" default="${debug.classpath}"/>
1.171 + <attribute name="stopclassname" default=""/>
1.172 + <sequential>
1.173 + <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}">
1.174 + <classpath>
1.175 + <path path="@{classpath}"/>
1.176 + </classpath>
1.177 + </nbjpdastart>
1.178 + </sequential>
1.179 + </macrodef>
1.180 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
1.181 + <attribute name="dir" default="${build.classes.dir}"/>
1.182 + <sequential>
1.183 + <nbjpdareload>
1.184 + <fileset includes="${fix.includes}*.class" dir="@{dir}"/>
1.185 + </nbjpdareload>
1.186 + </sequential>
1.187 + </macrodef>
1.188 + </target>
1.189 + <target name="-init-macrodef-debug">
1.190 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.191 + <attribute name="classname" default="${main.class}"/>
1.192 + <attribute name="classpath" default="${debug.classpath}"/>
1.193 + <element name="customize" optional="true"/>
1.194 + <sequential>
1.195 + <java fork="true" classname="@{classname}" dir="${work.dir}">
1.196 + <jvmarg value="-Xdebug"/>
1.197 + <jvmarg value="-Xnoagent"/>
1.198 + <jvmarg value="-Djava.compiler=none"/>
1.199 + <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
1.200 + <jvmarg line="${run.jvmargs}"/>
1.201 + <classpath>
1.202 + <path path="@{classpath}"/>
1.203 + </classpath>
1.204 + <syspropertyset>
1.205 + <propertyref prefix="run-sys-prop."/>
1.206 + <mapper type="glob" from="run-sys-prop.*" to="*"/>
1.207 + </syspropertyset>
1.208 + <customize/>
1.209 + </java>
1.210 + </sequential>
1.211 + </macrodef>
1.212 + </target>
1.213 + <target name="-init-macrodef-java">
1.214 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
1.215 + <attribute name="classname" default="${main.class}"/>
1.216 + <element name="customize" optional="true"/>
1.217 + <sequential>
1.218 + <java fork="true" classname="@{classname}" dir="${work.dir}">
1.219 + <jvmarg line="${run.jvmargs}"/>
1.220 + <classpath>
1.221 + <path path="${run.classpath}"/>
1.222 + </classpath>
1.223 + <syspropertyset>
1.224 + <propertyref prefix="run-sys-prop."/>
1.225 + <mapper type="glob" from="run-sys-prop.*" to="*"/>
1.226 + </syspropertyset>
1.227 + <customize/>
1.228 + </java>
1.229 + </sequential>
1.230 + </macrodef>
1.231 + </target>
1.232 + <target name="-init-presetdef-jar">
1.233 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
1.234 + <jar jarfile="${dist.jar}" compress="${jar.compress}">
1.235 + <j2seproject1:fileset dir="${build.classes.dir}"/>
1.236 + </jar>
1.237 + </presetdef>
1.238 + </target>
1.239 + <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.240 + <!--
1.241 + ===================
1.242 + COMPILATION SECTION
1.243 + ===================
1.244 + -->
1.245 + <target name="deps-jar" depends="init" unless="no.deps"/>
1.246 + <target name="-pre-pre-compile" depends="init,deps-jar">
1.247 + <mkdir dir="${build.classes.dir}"/>
1.248 + </target>
1.249 + <target name="-pre-compile">
1.250 + <!-- Empty placeholder for easier customization. -->
1.251 + <!-- You can override this target in the ../build.xml file. -->
1.252 + </target>
1.253 + <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources">
1.254 + <j2seproject3:javac/>
1.255 + <copy todir="${build.classes.dir}">
1.256 + <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
1.257 + </copy>
1.258 + </target>
1.259 + <target name="-post-compile">
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="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
1.264 + <target name="-pre-compile-single">
1.265 + <!-- Empty placeholder for easier customization. -->
1.266 + <!-- You can override this target in the ../build.xml file. -->
1.267 + </target>
1.268 + <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
1.269 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.270 + <j2seproject3:javac>
1.271 + <customize>
1.272 + <patternset includes="${javac.includes}"/>
1.273 + </customize>
1.274 + </j2seproject3:javac>
1.275 + </target>
1.276 + <target name="-post-compile-single">
1.277 + <!-- Empty placeholder for easier customization. -->
1.278 + <!-- You can override this target in the ../build.xml file. -->
1.279 + </target>
1.280 + <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
1.281 + <!--
1.282 + ====================
1.283 + JAR BUILDING SECTION
1.284 + ====================
1.285 + -->
1.286 + <target name="-pre-pre-jar" depends="init">
1.287 + <dirname property="dist.jar.dir" file="${dist.jar}"/>
1.288 + <mkdir dir="${dist.jar.dir}"/>
1.289 + </target>
1.290 + <target name="-pre-jar">
1.291 + <!-- Empty placeholder for easier customization. -->
1.292 + <!-- You can override this target in the ../build.xml file. -->
1.293 + </target>
1.294 + <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
1.295 + <j2seproject1:jar/>
1.296 + </target>
1.297 + <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
1.298 + <j2seproject1:jar manifest="${manifest.file}"/>
1.299 + </target>
1.300 + <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.301 + <j2seproject1:jar manifest="${manifest.file}">
1.302 + <j2seproject1:manifest>
1.303 + <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
1.304 + </j2seproject1:manifest>
1.305 + </j2seproject1:jar>
1.306 + <echo>To run this application from the command line without Ant, try:</echo>
1.307 + <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
1.308 + <property name="dist.jar.resolved" location="${dist.jar}"/>
1.309 + <pathconvert property="run.classpath.with.dist.jar">
1.310 + <path path="${run.classpath}"/>
1.311 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1.312 + </pathconvert>
1.313 + <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
1.314 + </target>
1.315 + <target name="-do-jar-with-libraries" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available">
1.316 + <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
1.317 + <pathconvert property="run.classpath.without.build.classes.dir">
1.318 + <path path="${run.classpath}"/>
1.319 + <map from="${build.classes.dir.resolved}" to=""/>
1.320 + </pathconvert>
1.321 + <pathconvert property="jar.classpath" pathsep=" ">
1.322 + <path path="${run.classpath.without.build.classes.dir}"/>
1.323 + <chainedmapper>
1.324 + <flattenmapper/>
1.325 + <globmapper from="*" to="lib/*"/>
1.326 + </chainedmapper>
1.327 + </pathconvert>
1.328 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" name="copylibs" classpath="${libs.CopyLibs.classpath}"/>
1.329 + <copylibs manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}" jarfile="${dist.jar}" compress="${jar.compress}">
1.330 + <fileset dir="${build.classes.dir}"/>
1.331 + <manifest>
1.332 + <attribute name="Main-Class" value="${main.class}"/>
1.333 + <attribute name="Class-Path" value="${jar.classpath}"/>
1.334 + </manifest>
1.335 + </copylibs>
1.336 + <echo>To run this application from the command line without Ant, try:</echo>
1.337 + <property name="dist.jar.resolved" location="${dist.jar}"/>
1.338 + <echo>java -jar "${dist.jar.resolved}"</echo>
1.339 + </target>
1.340 + <target name="-post-jar">
1.341 + <!-- Empty placeholder for easier customization. -->
1.342 + <!-- You can override this target in the ../build.xml file. -->
1.343 + </target>
1.344 + <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.345 + <!--
1.346 + =================
1.347 + EXECUTION SECTION
1.348 + =================
1.349 + -->
1.350 + <target name="run" depends="init,compile" description="Run a main class.">
1.351 + <j2seproject1:java>
1.352 + <customize>
1.353 + <arg line="${application.args}"/>
1.354 + </customize>
1.355 + </j2seproject1:java>
1.356 + </target>
1.357 + <target name="run-single" depends="init,compile-single">
1.358 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1.359 + <j2seproject1:java classname="${run.class}"/>
1.360 + </target>
1.361 + <!--
1.362 + =================
1.363 + DEBUGGING SECTION
1.364 + =================
1.365 + -->
1.366 + <target name="-debug-start-debugger" if="netbeans.home" depends="init">
1.367 + <j2seproject1:nbjpdastart name="${debug.class}"/>
1.368 + </target>
1.369 + <target name="-debug-start-debuggee" depends="init,compile">
1.370 + <j2seproject3:debug>
1.371 + <customize>
1.372 + <arg line="${application.args}"/>
1.373 + </customize>
1.374 + </j2seproject3:debug>
1.375 + </target>
1.376 + <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
1.377 + <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
1.378 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1.379 + </target>
1.380 + <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
1.381 + <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
1.382 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1.383 + <j2seproject3:debug classname="${debug.class}"/>
1.384 + </target>
1.385 + <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
1.386 + <target name="-pre-debug-fix" depends="init">
1.387 + <fail unless="fix.includes">Must set fix.includes</fail>
1.388 + <property name="javac.includes" value="${fix.includes}.java"/>
1.389 + </target>
1.390 + <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
1.391 + <j2seproject1:nbjpdareload/>
1.392 + </target>
1.393 + <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
1.394 + <!--
1.395 + ===============
1.396 + JAVADOC SECTION
1.397 + ===============
1.398 + -->
1.399 + <target name="-javadoc-build" depends="init">
1.400 + <mkdir dir="${dist.javadoc.dir}"/>
1.401 + <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.402 + <classpath>
1.403 + <path path="${javac.classpath}"/>
1.404 + </classpath>
1.405 + <sourcepath>
1.406 + <pathelement location="${src.dir}"/>
1.407 + </sourcepath>
1.408 + <packageset dir="${src.dir}" includes="*/**"/>
1.409 + <fileset dir="${src.dir}" includes="*.java"/>
1.410 + </javadoc>
1.411 + </target>
1.412 + <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
1.413 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1.414 + </target>
1.415 + <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
1.416 + <!--
1.417 + =========================
1.418 + JUNIT COMPILATION SECTION
1.419 + =========================
1.420 + -->
1.421 + <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
1.422 + <mkdir dir="${build.test.classes.dir}"/>
1.423 + </target>
1.424 + <target name="-pre-compile-test">
1.425 + <!-- Empty placeholder for easier customization. -->
1.426 + <!-- You can override this target in the ../build.xml file. -->
1.427 + </target>
1.428 + <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
1.429 + <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
1.430 + <copy todir="${build.test.classes.dir}">
1.431 + <fileset dir="${test.src.dir}" excludes="**/*.java"/>
1.432 + </copy>
1.433 + </target>
1.434 + <target name="-post-compile-test">
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="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
1.439 + <target name="-pre-compile-test-single">
1.440 + <!-- Empty placeholder for easier customization. -->
1.441 + <!-- You can override this target in the ../build.xml file. -->
1.442 + </target>
1.443 + <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
1.444 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.445 + <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
1.446 + <customize>
1.447 + <patternset includes="${javac.includes}"/>
1.448 + </customize>
1.449 + </j2seproject3:javac>
1.450 + <copy todir="${build.test.classes.dir}">
1.451 + <fileset dir="${test.src.dir}" excludes="**/*.java"/>
1.452 + </copy>
1.453 + </target>
1.454 + <target name="-post-compile-test-single">
1.455 + <!-- Empty placeholder for easier customization. -->
1.456 + <!-- You can override this target in the ../build.xml file. -->
1.457 + </target>
1.458 + <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.459 + <!--
1.460 + =======================
1.461 + JUNIT EXECUTION SECTION
1.462 + =======================
1.463 + -->
1.464 + <target name="-pre-test-run" if="have.tests" depends="init">
1.465 + <mkdir dir="${build.test.results.dir}"/>
1.466 + </target>
1.467 + <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
1.468 + <j2seproject3:junit/>
1.469 + </target>
1.470 + <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
1.471 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.472 + </target>
1.473 + <target name="test-report" if="have.tests" depends="init"/>
1.474 + <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
1.475 + <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.476 + <target name="-pre-test-run-single" if="have.tests" depends="init">
1.477 + <mkdir dir="${build.test.results.dir}"/>
1.478 + </target>
1.479 + <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
1.480 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1.481 + <j2seproject3:junit includes="${test.includes}"/>
1.482 + </target>
1.483 + <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
1.484 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.485 + </target>
1.486 + <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.487 + <!--
1.488 + =======================
1.489 + JUNIT DEBUGGING SECTION
1.490 + =======================
1.491 + -->
1.492 + <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
1.493 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1.494 + <j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
1.495 + <customize>
1.496 + <arg line="${test.class}"/>
1.497 + </customize>
1.498 + </j2seproject3:debug>
1.499 + </target>
1.500 + <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
1.501 + <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/>
1.502 + </target>
1.503 + <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
1.504 + <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
1.505 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1.506 + </target>
1.507 + <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
1.508 + <!--
1.509 + =========================
1.510 + APPLET EXECUTION SECTION
1.511 + =========================
1.512 + -->
1.513 + <target name="run-applet" depends="init,compile-single">
1.514 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.515 + <j2seproject1:java classname="sun.applet.AppletViewer">
1.516 + <customize>
1.517 + <arg value="${applet.url}"/>
1.518 + </customize>
1.519 + </j2seproject1:java>
1.520 + </target>
1.521 + <!--
1.522 + =========================
1.523 + APPLET DEBUGGING SECTION
1.524 + =========================
1.525 + -->
1.526 + <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
1.527 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.528 + <j2seproject3:debug classname="sun.applet.AppletViewer">
1.529 + <customize>
1.530 + <arg value="${applet.url}"/>
1.531 + </customize>
1.532 + </j2seproject3:debug>
1.533 + </target>
1.534 + <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
1.535 + <!--
1.536 + ===============
1.537 + CLEANUP SECTION
1.538 + ===============
1.539 + -->
1.540 + <target name="deps-clean" depends="init" unless="no.deps"/>
1.541 + <target name="-do-clean" depends="init">
1.542 + <delete dir="${build.dir}"/>
1.543 + <delete dir="${dist.dir}"/>
1.544 + </target>
1.545 + <target name="-post-clean">
1.546 + <!-- Empty placeholder for easier customization. -->
1.547 + <!-- You can override this target in the ../build.xml file. -->
1.548 + </target>
1.549 + <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>
1.550 +</project>