1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/Postak/nbproject/build-impl.xml Sun Nov 23 22:19:20 2008 +0100
1.3 @@ -0,0 +1,629 @@
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 xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="Postak-impl">
1.26 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
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 depends="-pre-init" name="-init-private">
1.37 + <property file="nbproject/private/config.properties"/>
1.38 + <property file="nbproject/private/configs/${config}.properties"/>
1.39 + <property file="nbproject/private/private.properties"/>
1.40 + </target>
1.41 + <target depends="-pre-init,-init-private" name="-init-user">
1.42 + <property file="${user.properties.file}"/>
1.43 + <!-- The two properties below are usually overridden -->
1.44 + <!-- by the active platform. Just a fallback. -->
1.45 + <property name="default.javac.source" value="1.4"/>
1.46 + <property name="default.javac.target" value="1.4"/>
1.47 + </target>
1.48 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
1.49 + <property file="nbproject/configs/${config}.properties"/>
1.50 + <property file="nbproject/project.properties"/>
1.51 + </target>
1.52 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
1.53 + <available file="${manifest.file}" property="manifest.available"/>
1.54 + <condition property="manifest.available+main.class">
1.55 + <and>
1.56 + <isset property="manifest.available"/>
1.57 + <isset property="main.class"/>
1.58 + <not>
1.59 + <equals arg1="${main.class}" arg2="" trim="true"/>
1.60 + </not>
1.61 + </and>
1.62 + </condition>
1.63 + <condition property="manifest.available+main.class+mkdist.available">
1.64 + <and>
1.65 + <istrue value="${manifest.available+main.class}"/>
1.66 + <isset property="libs.CopyLibs.classpath"/>
1.67 + </and>
1.68 + </condition>
1.69 + <condition property="have.tests">
1.70 + <or>
1.71 + <available file="${test.src.dir}"/>
1.72 + </or>
1.73 + </condition>
1.74 + <condition property="have.sources">
1.75 + <or>
1.76 + <available file="${src.dir}"/>
1.77 + </or>
1.78 + </condition>
1.79 + <condition property="netbeans.home+have.tests">
1.80 + <and>
1.81 + <isset property="netbeans.home"/>
1.82 + <isset property="have.tests"/>
1.83 + </and>
1.84 + </condition>
1.85 + <condition property="no.javadoc.preview">
1.86 + <and>
1.87 + <isset property="javadoc.preview"/>
1.88 + <isfalse value="${javadoc.preview}"/>
1.89 + </and>
1.90 + </condition>
1.91 + <property name="run.jvmargs" value=""/>
1.92 + <property name="javac.compilerargs" value=""/>
1.93 + <property name="work.dir" value="${basedir}"/>
1.94 + <condition property="no.deps">
1.95 + <and>
1.96 + <istrue value="${no.dependencies}"/>
1.97 + </and>
1.98 + </condition>
1.99 + <property name="javac.debug" value="true"/>
1.100 + <property name="javadoc.preview" value="true"/>
1.101 + <property name="application.args" value=""/>
1.102 + <property name="source.encoding" value="${file.encoding}"/>
1.103 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
1.104 + <and>
1.105 + <isset property="javadoc.encoding"/>
1.106 + <not>
1.107 + <equals arg1="${javadoc.encoding}" arg2=""/>
1.108 + </not>
1.109 + </and>
1.110 + </condition>
1.111 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
1.112 + <property name="includes" value="**"/>
1.113 + <property name="excludes" value=""/>
1.114 + <property name="do.depend" value="false"/>
1.115 + <condition property="do.depend.true">
1.116 + <istrue value="${do.depend}"/>
1.117 + </condition>
1.118 + <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
1.119 + <and>
1.120 + <isset property="jaxws.endorsed.dir"/>
1.121 + <available file="nbproject/jaxws-build.xml"/>
1.122 + </and>
1.123 + </condition>
1.124 + </target>
1.125 + <target name="-post-init">
1.126 + <!-- Empty placeholder for easier customization. -->
1.127 + <!-- You can override this target in the ../build.xml file. -->
1.128 + </target>
1.129 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
1.130 + <fail unless="src.dir">Must set src.dir</fail>
1.131 + <fail unless="test.src.dir">Must set test.src.dir</fail>
1.132 + <fail unless="build.dir">Must set build.dir</fail>
1.133 + <fail unless="dist.dir">Must set dist.dir</fail>
1.134 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
1.135 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
1.136 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
1.137 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
1.138 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
1.139 + <fail unless="dist.jar">Must set dist.jar</fail>
1.140 + </target>
1.141 + <target name="-init-macrodef-property">
1.142 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
1.143 + <attribute name="name"/>
1.144 + <attribute name="value"/>
1.145 + <sequential>
1.146 + <property name="@{name}" value="${@{value}}"/>
1.147 + </sequential>
1.148 + </macrodef>
1.149 + </target>
1.150 + <target name="-init-macrodef-javac">
1.151 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
1.152 + <attribute default="${src.dir}" name="srcdir"/>
1.153 + <attribute default="${build.classes.dir}" name="destdir"/>
1.154 + <attribute default="${javac.classpath}" name="classpath"/>
1.155 + <attribute default="${includes}" name="includes"/>
1.156 + <attribute default="${excludes}" name="excludes"/>
1.157 + <attribute default="${javac.debug}" name="debug"/>
1.158 + <attribute default="" name="sourcepath"/>
1.159 + <element name="customize" optional="true"/>
1.160 + <sequential>
1.161 + <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.162 + <classpath>
1.163 + <path path="@{classpath}"/>
1.164 + </classpath>
1.165 + <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
1.166 + <customize/>
1.167 + </javac>
1.168 + </sequential>
1.169 + </macrodef>
1.170 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
1.171 + <attribute default="${src.dir}" name="srcdir"/>
1.172 + <attribute default="${build.classes.dir}" name="destdir"/>
1.173 + <attribute default="${javac.classpath}" name="classpath"/>
1.174 + <sequential>
1.175 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
1.176 + <classpath>
1.177 + <path path="@{classpath}"/>
1.178 + </classpath>
1.179 + </depend>
1.180 + </sequential>
1.181 + </macrodef>
1.182 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
1.183 + <attribute default="${build.classes.dir}" name="destdir"/>
1.184 + <sequential>
1.185 + <fail unless="javac.includes">Must set javac.includes</fail>
1.186 + <pathconvert pathsep="," property="javac.includes.binary">
1.187 + <path>
1.188 + <filelist dir="@{destdir}" files="${javac.includes}"/>
1.189 + </path>
1.190 + <globmapper from="*.java" to="*.class"/>
1.191 + </pathconvert>
1.192 + <delete>
1.193 + <files includes="${javac.includes.binary}"/>
1.194 + </delete>
1.195 + </sequential>
1.196 + </macrodef>
1.197 + </target>
1.198 + <target name="-init-macrodef-junit">
1.199 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
1.200 + <attribute default="${includes}" name="includes"/>
1.201 + <attribute default="${excludes}" name="excludes"/>
1.202 + <attribute default="**" name="testincludes"/>
1.203 + <sequential>
1.204 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
1.205 + <batchtest todir="${build.test.results.dir}">
1.206 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
1.207 + <filename name="@{testincludes}"/>
1.208 + </fileset>
1.209 + </batchtest>
1.210 + <classpath>
1.211 + <path path="${run.test.classpath}"/>
1.212 + </classpath>
1.213 + <syspropertyset>
1.214 + <propertyref prefix="test-sys-prop."/>
1.215 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.216 + </syspropertyset>
1.217 + <formatter type="brief" usefile="false"/>
1.218 + <formatter type="xml"/>
1.219 + <jvmarg line="${run.jvmargs}"/>
1.220 + </junit>
1.221 + </sequential>
1.222 + </macrodef>
1.223 + </target>
1.224 + <target name="-init-macrodef-nbjpda">
1.225 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
1.226 + <attribute default="${main.class}" name="name"/>
1.227 + <attribute default="${debug.classpath}" name="classpath"/>
1.228 + <attribute default="" name="stopclassname"/>
1.229 + <sequential>
1.230 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
1.231 + <classpath>
1.232 + <path path="@{classpath}"/>
1.233 + </classpath>
1.234 + </nbjpdastart>
1.235 + </sequential>
1.236 + </macrodef>
1.237 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
1.238 + <attribute default="${build.classes.dir}" name="dir"/>
1.239 + <sequential>
1.240 + <nbjpdareload>
1.241 + <fileset dir="@{dir}" includes="${fix.classes}">
1.242 + <include name="${fix.includes}*.class"/>
1.243 + </fileset>
1.244 + </nbjpdareload>
1.245 + </sequential>
1.246 + </macrodef>
1.247 + </target>
1.248 + <target name="-init-debug-args">
1.249 + <property name="version-output" value="java version "${ant.java.version}"/>
1.250 + <condition property="have-jdk-older-than-1.4">
1.251 + <or>
1.252 + <contains string="${version-output}" substring="java version "1.0"/>
1.253 + <contains string="${version-output}" substring="java version "1.1"/>
1.254 + <contains string="${version-output}" substring="java version "1.2"/>
1.255 + <contains string="${version-output}" substring="java version "1.3"/>
1.256 + </or>
1.257 + </condition>
1.258 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
1.259 + <istrue value="${have-jdk-older-than-1.4}"/>
1.260 + </condition>
1.261 + </target>
1.262 + <target depends="-init-debug-args" name="-init-macrodef-debug">
1.263 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.264 + <attribute default="${main.class}" name="classname"/>
1.265 + <attribute default="${debug.classpath}" name="classpath"/>
1.266 + <element name="customize" optional="true"/>
1.267 + <sequential>
1.268 + <java classname="@{classname}" dir="${work.dir}" fork="true">
1.269 + <jvmarg line="${debug-args-line}"/>
1.270 + <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
1.271 + <jvmarg line="${run.jvmargs}"/>
1.272 + <classpath>
1.273 + <path path="@{classpath}"/>
1.274 + </classpath>
1.275 + <syspropertyset>
1.276 + <propertyref prefix="run-sys-prop."/>
1.277 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.278 + </syspropertyset>
1.279 + <customize/>
1.280 + </java>
1.281 + </sequential>
1.282 + </macrodef>
1.283 + </target>
1.284 + <target name="-init-macrodef-java">
1.285 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
1.286 + <attribute default="${main.class}" name="classname"/>
1.287 + <element name="customize" optional="true"/>
1.288 + <sequential>
1.289 + <java classname="@{classname}" dir="${work.dir}" fork="true">
1.290 + <jvmarg line="${run.jvmargs}"/>
1.291 + <classpath>
1.292 + <path path="${run.classpath}"/>
1.293 + </classpath>
1.294 + <syspropertyset>
1.295 + <propertyref prefix="run-sys-prop."/>
1.296 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.297 + </syspropertyset>
1.298 + <customize/>
1.299 + </java>
1.300 + </sequential>
1.301 + </macrodef>
1.302 + </target>
1.303 + <target name="-init-presetdef-jar">
1.304 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
1.305 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
1.306 + <j2seproject1:fileset dir="${build.classes.dir}"/>
1.307 + </jar>
1.308 + </presetdef>
1.309 + </target>
1.310 + <target 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" name="init"/>
1.311 + <!--
1.312 + ===================
1.313 + COMPILATION SECTION
1.314 + ===================
1.315 + -->
1.316 + <target depends="init" name="deps-jar" unless="no.deps"/>
1.317 + <target depends="init,deps-jar" name="-pre-pre-compile">
1.318 + <mkdir dir="${build.classes.dir}"/>
1.319 + </target>
1.320 + <target name="-pre-compile">
1.321 + <!-- Empty placeholder for easier customization. -->
1.322 + <!-- You can override this target in the ../build.xml file. -->
1.323 + </target>
1.324 + <target if="do.depend.true" name="-compile-depend">
1.325 + <j2seproject3:depend/>
1.326 + </target>
1.327 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
1.328 + <j2seproject3:javac/>
1.329 + <copy todir="${build.classes.dir}">
1.330 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.331 + </copy>
1.332 + </target>
1.333 + <target name="-post-compile">
1.334 + <!-- Empty placeholder for easier customization. -->
1.335 + <!-- You can override this target in the ../build.xml file. -->
1.336 + </target>
1.337 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
1.338 + <target name="-pre-compile-single">
1.339 + <!-- Empty placeholder for easier customization. -->
1.340 + <!-- You can override this target in the ../build.xml file. -->
1.341 + </target>
1.342 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
1.343 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.344 + <j2seproject3:force-recompile/>
1.345 + <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
1.346 + </target>
1.347 + <target name="-post-compile-single">
1.348 + <!-- Empty placeholder for easier customization. -->
1.349 + <!-- You can override this target in the ../build.xml file. -->
1.350 + </target>
1.351 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
1.352 + <!--
1.353 + ====================
1.354 + JAR BUILDING SECTION
1.355 + ====================
1.356 + -->
1.357 + <target depends="init" name="-pre-pre-jar">
1.358 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
1.359 + <mkdir dir="${dist.jar.dir}"/>
1.360 + </target>
1.361 + <target name="-pre-jar">
1.362 + <!-- Empty placeholder for easier customization. -->
1.363 + <!-- You can override this target in the ../build.xml file. -->
1.364 + </target>
1.365 + <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
1.366 + <j2seproject1:jar/>
1.367 + </target>
1.368 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
1.369 + <j2seproject1:jar manifest="${manifest.file}"/>
1.370 + </target>
1.371 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
1.372 + <j2seproject1:jar manifest="${manifest.file}">
1.373 + <j2seproject1:manifest>
1.374 + <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
1.375 + </j2seproject1:manifest>
1.376 + </j2seproject1:jar>
1.377 + <echo>To run this application from the command line without Ant, try:</echo>
1.378 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1.379 + <property location="${dist.jar}" name="dist.jar.resolved"/>
1.380 + <pathconvert property="run.classpath.with.dist.jar">
1.381 + <path path="${run.classpath}"/>
1.382 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1.383 + </pathconvert>
1.384 + <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
1.385 + </target>
1.386 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
1.387 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1.388 + <pathconvert property="run.classpath.without.build.classes.dir">
1.389 + <path path="${run.classpath}"/>
1.390 + <map from="${build.classes.dir.resolved}" to=""/>
1.391 + </pathconvert>
1.392 + <pathconvert pathsep=" " property="jar.classpath">
1.393 + <path path="${run.classpath.without.build.classes.dir}"/>
1.394 + <chainedmapper>
1.395 + <flattenmapper/>
1.396 + <globmapper from="*" to="lib/*"/>
1.397 + </chainedmapper>
1.398 + </pathconvert>
1.399 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
1.400 + <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
1.401 + <fileset dir="${build.classes.dir}"/>
1.402 + <manifest>
1.403 + <attribute name="Main-Class" value="${main.class}"/>
1.404 + <attribute name="Class-Path" value="${jar.classpath}"/>
1.405 + </manifest>
1.406 + </copylibs>
1.407 + <echo>To run this application from the command line without Ant, try:</echo>
1.408 + <property location="${dist.jar}" name="dist.jar.resolved"/>
1.409 + <echo>java -jar "${dist.jar.resolved}"</echo>
1.410 + </target>
1.411 + <target name="-post-jar">
1.412 + <!-- Empty placeholder for easier customization. -->
1.413 + <!-- You can override this target in the ../build.xml file. -->
1.414 + </target>
1.415 + <target 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." name="jar"/>
1.416 + <!--
1.417 + =================
1.418 + EXECUTION SECTION
1.419 + =================
1.420 + -->
1.421 + <target depends="init,compile" description="Run a main class." name="run">
1.422 + <j2seproject1:java>
1.423 + <customize>
1.424 + <arg line="${application.args}"/>
1.425 + </customize>
1.426 + </j2seproject1:java>
1.427 + </target>
1.428 + <target name="-do-not-recompile">
1.429 + <property name="javac.includes.binary" value=""/>
1.430 + </target>
1.431 + <target depends="init,-do-not-recompile,compile-single" name="run-single">
1.432 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1.433 + <j2seproject1:java classname="${run.class}"/>
1.434 + </target>
1.435 + <!--
1.436 + =================
1.437 + DEBUGGING SECTION
1.438 + =================
1.439 + -->
1.440 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1.441 + <j2seproject1:nbjpdastart name="${debug.class}"/>
1.442 + </target>
1.443 + <target depends="init,compile" name="-debug-start-debuggee">
1.444 + <j2seproject3:debug>
1.445 + <customize>
1.446 + <arg line="${application.args}"/>
1.447 + </customize>
1.448 + </j2seproject3:debug>
1.449 + </target>
1.450 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1.451 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1.452 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1.453 + </target>
1.454 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1.455 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1.456 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1.457 + <j2seproject3:debug classname="${debug.class}"/>
1.458 + </target>
1.459 + <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1.460 + <target depends="init" name="-pre-debug-fix">
1.461 + <fail unless="fix.includes">Must set fix.includes</fail>
1.462 + <property name="javac.includes" value="${fix.includes}.java"/>
1.463 + </target>
1.464 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1.465 + <j2seproject1:nbjpdareload/>
1.466 + </target>
1.467 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1.468 + <!--
1.469 + ===============
1.470 + JAVADOC SECTION
1.471 + ===============
1.472 + -->
1.473 + <target depends="init" name="-javadoc-build">
1.474 + <mkdir dir="${dist.javadoc.dir}"/>
1.475 + <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
1.476 + <classpath>
1.477 + <path path="${javac.classpath}"/>
1.478 + </classpath>
1.479 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1.480 + <filename name="**/*.java"/>
1.481 + </fileset>
1.482 + </javadoc>
1.483 + </target>
1.484 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1.485 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1.486 + </target>
1.487 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1.488 + <!--
1.489 + =========================
1.490 + JUNIT COMPILATION SECTION
1.491 + =========================
1.492 + -->
1.493 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1.494 + <mkdir dir="${build.test.classes.dir}"/>
1.495 + </target>
1.496 + <target name="-pre-compile-test">
1.497 + <!-- Empty placeholder for easier customization. -->
1.498 + <!-- You can override this target in the ../build.xml file. -->
1.499 + </target>
1.500 + <target if="do.depend.true" name="-compile-test-depend">
1.501 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.502 + </target>
1.503 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1.504 + <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.505 + <copy todir="${build.test.classes.dir}">
1.506 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.507 + </copy>
1.508 + </target>
1.509 + <target name="-post-compile-test">
1.510 + <!-- Empty placeholder for easier customization. -->
1.511 + <!-- You can override this target in the ../build.xml file. -->
1.512 + </target>
1.513 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1.514 + <target name="-pre-compile-test-single">
1.515 + <!-- Empty placeholder for easier customization. -->
1.516 + <!-- You can override this target in the ../build.xml file. -->
1.517 + </target>
1.518 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1.519 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.520 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1.521 + <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.522 + <copy todir="${build.test.classes.dir}">
1.523 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.524 + </copy>
1.525 + </target>
1.526 + <target name="-post-compile-test-single">
1.527 + <!-- Empty placeholder for easier customization. -->
1.528 + <!-- You can override this target in the ../build.xml file. -->
1.529 + </target>
1.530 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1.531 + <!--
1.532 + =======================
1.533 + JUNIT EXECUTION SECTION
1.534 + =======================
1.535 + -->
1.536 + <target depends="init" if="have.tests" name="-pre-test-run">
1.537 + <mkdir dir="${build.test.results.dir}"/>
1.538 + </target>
1.539 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1.540 + <j2seproject3:junit testincludes="**/*Test.java"/>
1.541 + </target>
1.542 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1.543 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.544 + </target>
1.545 + <target depends="init" if="have.tests" name="test-report"/>
1.546 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1.547 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1.548 + <target depends="init" if="have.tests" name="-pre-test-run-single">
1.549 + <mkdir dir="${build.test.results.dir}"/>
1.550 + </target>
1.551 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1.552 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1.553 + <j2seproject3:junit excludes="" includes="${test.includes}"/>
1.554 + </target>
1.555 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1.556 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.557 + </target>
1.558 + <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.559 + <!--
1.560 + =======================
1.561 + JUNIT DEBUGGING SECTION
1.562 + =======================
1.563 + -->
1.564 + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
1.565 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1.566 + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
1.567 + <delete file="${test.report.file}"/>
1.568 + <mkdir dir="${build.test.results.dir}"/>
1.569 + <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.570 + <customize>
1.571 + <syspropertyset>
1.572 + <propertyref prefix="test-sys-prop."/>
1.573 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.574 + </syspropertyset>
1.575 + <arg value="${test.class}"/>
1.576 + <arg value="showoutput=true"/>
1.577 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
1.578 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
1.579 + </customize>
1.580 + </j2seproject3:debug>
1.581 + </target>
1.582 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1.583 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1.584 + </target>
1.585 + <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1.586 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1.587 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1.588 + </target>
1.589 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1.590 + <!--
1.591 + =========================
1.592 + APPLET EXECUTION SECTION
1.593 + =========================
1.594 + -->
1.595 + <target depends="init,compile-single" name="run-applet">
1.596 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.597 + <j2seproject1:java classname="sun.applet.AppletViewer">
1.598 + <customize>
1.599 + <arg value="${applet.url}"/>
1.600 + </customize>
1.601 + </j2seproject1:java>
1.602 + </target>
1.603 + <!--
1.604 + =========================
1.605 + APPLET DEBUGGING SECTION
1.606 + =========================
1.607 + -->
1.608 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1.609 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.610 + <j2seproject3:debug classname="sun.applet.AppletViewer">
1.611 + <customize>
1.612 + <arg value="${applet.url}"/>
1.613 + </customize>
1.614 + </j2seproject3:debug>
1.615 + </target>
1.616 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1.617 + <!--
1.618 + ===============
1.619 + CLEANUP SECTION
1.620 + ===============
1.621 + -->
1.622 + <target depends="init" name="deps-clean" unless="no.deps"/>
1.623 + <target depends="init" name="-do-clean">
1.624 + <delete dir="${build.dir}"/>
1.625 + <delete dir="${dist.dir}"/>
1.626 + </target>
1.627 + <target name="-post-clean">
1.628 + <!-- Empty placeholder for easier customization. -->
1.629 + <!-- You can override this target in the ../build.xml file. -->
1.630 + </target>
1.631 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1.632 +</project>