1<?xml version="1.0" encoding="UTF-8"?> 2<!--*********************************************************** 3 * 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 * 21 ***********************************************************--> 22<!-- 23*** GENERATED FROM project.xml - DO NOT EDIT *** 24*** EDIT ../build.xml INSTEAD *** 25 26For the purpose of easier reading the script 27is divided into following sections: 28 29 - initialization 30 - compilation 31 - jar 32 - execution 33 - debugging 34 - javadoc 35 - junit compilation 36 - junit execution 37 - junit debugging 38 - applet 39 - cleanup 40 41 --> 42<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="httpserv-impl"> 43 <fail message="Please build using Ant 1.7.1 or higher."> 44 <condition> 45 <not> 46 <antversion atleast="1.7.1"/> 47 </not> 48 </condition> 49 </fail> 50 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> 51 <!-- 52 ====================== 53 INITIALIZATION SECTION 54 ====================== 55 --> 56 <target name="-pre-init"> 57 <!-- Empty placeholder for easier customization. --> 58 <!-- You can override this target in the ../build.xml file. --> 59 </target> 60 <target depends="-pre-init" name="-init-private"> 61 <property file="nbproject/private/config.properties"/> 62 <property file="nbproject/private/configs/${config}.properties"/> 63 <property file="nbproject/private/private.properties"/> 64 </target> 65 <target depends="-pre-init,-init-private" name="-init-user"> 66 <property file="${user.properties.file}"/> 67 <!-- The two properties below are usually overridden --> 68 <!-- by the active platform. Just a fallback. --> 69 <property name="default.javac.source" value="1.4"/> 70 <property name="default.javac.target" value="1.4"/> 71 </target> 72 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> 73 <property file="nbproject/configs/${config}.properties"/> 74 <property file="nbproject/project.properties"/> 75 </target> 76 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> 77 <available file="${manifest.file}" property="manifest.available"/> 78 <condition property="manifest.available+main.class"> 79 <and> 80 <isset property="manifest.available"/> 81 <isset property="main.class"/> 82 <not> 83 <equals arg1="${main.class}" arg2="" trim="true"/> 84 </not> 85 </and> 86 </condition> 87 <condition property="manifest.available+main.class+mkdist.available"> 88 <and> 89 <istrue value="${manifest.available+main.class}"/> 90 <isset property="libs.CopyLibs.classpath"/> 91 </and> 92 </condition> 93 <condition property="have.tests"> 94 <or> 95 <available file="${test.src.dir}"/> 96 </or> 97 </condition> 98 <condition property="have.sources"> 99 <or> 100 <available file="${src.dir}"/> 101 </or> 102 </condition> 103 <condition property="netbeans.home+have.tests"> 104 <and> 105 <isset property="netbeans.home"/> 106 <isset property="have.tests"/> 107 </and> 108 </condition> 109 <condition property="no.javadoc.preview"> 110 <and> 111 <isset property="javadoc.preview"/> 112 <isfalse value="${javadoc.preview}"/> 113 </and> 114 </condition> 115 <property name="run.jvmargs" value=""/> 116 <property name="javac.compilerargs" value=""/> 117 <property name="work.dir" value="${basedir}"/> 118 <condition property="no.deps"> 119 <and> 120 <istrue value="${no.dependencies}"/> 121 </and> 122 </condition> 123 <property name="javac.debug" value="true"/> 124 <property name="javadoc.preview" value="true"/> 125 <property name="application.args" value=""/> 126 <property name="source.encoding" value="${file.encoding}"/> 127 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> 128 <and> 129 <isset property="javadoc.encoding"/> 130 <not> 131 <equals arg1="${javadoc.encoding}" arg2=""/> 132 </not> 133 </and> 134 </condition> 135 <property name="javadoc.encoding.used" value="${source.encoding}"/> 136 <property name="includes" value="**"/> 137 <property name="excludes" value=""/> 138 <property name="do.depend" value="false"/> 139 <condition property="do.depend.true"> 140 <istrue value="${do.depend}"/> 141 </condition> 142 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"> 143 <and> 144 <isset property="jaxws.endorsed.dir"/> 145 <available file="nbproject/jaxws-build.xml"/> 146 </and> 147 </condition> 148 </target> 149 <target name="-post-init"> 150 <!-- Empty placeholder for easier customization. --> 151 <!-- You can override this target in the ../build.xml file. --> 152 </target> 153 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> 154 <fail unless="src.dir">Must set src.dir</fail> 155 <fail unless="test.src.dir">Must set test.src.dir</fail> 156 <fail unless="build.dir">Must set build.dir</fail> 157 <fail unless="dist.dir">Must set dist.dir</fail> 158 <fail unless="build.classes.dir">Must set build.classes.dir</fail> 159 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> 160 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> 161 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> 162 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> 163 <fail unless="dist.jar">Must set dist.jar</fail> 164 </target> 165 <target name="-init-macrodef-property"> 166 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> 167 <attribute name="name"/> 168 <attribute name="value"/> 169 <sequential> 170 <property name="@{name}" value="${@{value}}"/> 171 </sequential> 172 </macrodef> 173 </target> 174 <target name="-init-macrodef-javac"> 175 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> 176 <attribute default="${src.dir}" name="srcdir"/> 177 <attribute default="${build.classes.dir}" name="destdir"/> 178 <attribute default="${javac.classpath}" name="classpath"/> 179 <attribute default="${includes}" name="includes"/> 180 <attribute default="${excludes}" name="excludes"/> 181 <attribute default="${javac.debug}" name="debug"/> 182 <attribute default="${empty.dir}" name="sourcepath"/> 183 <attribute default="${empty.dir}" name="gensrcdir"/> 184 <element name="customize" optional="true"/> 185 <sequential> 186 <property location="${build.dir}/empty" name="empty.dir"/> 187 <mkdir dir="${empty.dir}"/> 188 <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}"> 189 <src> 190 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> 191 <include name="*"/> 192 </dirset> 193 </src> 194 <classpath> 195 <path path="@{classpath}"/> 196 </classpath> 197 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> 198 <customize/> 199 </javac> 200 </sequential> 201 </macrodef> 202 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> 203 <attribute default="${src.dir}" name="srcdir"/> 204 <attribute default="${build.classes.dir}" name="destdir"/> 205 <attribute default="${javac.classpath}" name="classpath"/> 206 <sequential> 207 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> 208 <classpath> 209 <path path="@{classpath}"/> 210 </classpath> 211 </depend> 212 </sequential> 213 </macrodef> 214 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> 215 <attribute default="${build.classes.dir}" name="destdir"/> 216 <sequential> 217 <fail unless="javac.includes">Must set javac.includes</fail> 218 <pathconvert pathsep="," property="javac.includes.binary"> 219 <path> 220 <filelist dir="@{destdir}" files="${javac.includes}"/> 221 </path> 222 <globmapper from="*.java" to="*.class"/> 223 </pathconvert> 224 <delete> 225 <files includes="${javac.includes.binary}"/> 226 </delete> 227 </sequential> 228 </macrodef> 229 </target> 230 <target name="-init-macrodef-junit"> 231 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> 232 <attribute default="${includes}" name="includes"/> 233 <attribute default="${excludes}" name="excludes"/> 234 <attribute default="**" name="testincludes"/> 235 <sequential> 236 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> 237 <batchtest todir="${build.test.results.dir}"> 238 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> 239 <filename name="@{testincludes}"/> 240 </fileset> 241 </batchtest> 242 <classpath> 243 <path path="${run.test.classpath}"/> 244 </classpath> 245 <syspropertyset> 246 <propertyref prefix="test-sys-prop."/> 247 <mapper from="test-sys-prop.*" to="*" type="glob"/> 248 </syspropertyset> 249 <formatter type="brief" usefile="false"/> 250 <formatter type="xml"/> 251 <jvmarg line="${run.jvmargs}"/> 252 </junit> 253 </sequential> 254 </macrodef> 255 </target> 256 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> 257 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> 258 <attribute default="${main.class}" name="name"/> 259 <attribute default="${debug.classpath}" name="classpath"/> 260 <attribute default="" name="stopclassname"/> 261 <sequential> 262 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> 263 <classpath> 264 <path path="@{classpath}"/> 265 </classpath> 266 </nbjpdastart> 267 </sequential> 268 </macrodef> 269 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> 270 <attribute default="${build.classes.dir}" name="dir"/> 271 <sequential> 272 <nbjpdareload> 273 <fileset dir="@{dir}" includes="${fix.classes}"> 274 <include name="${fix.includes}*.class"/> 275 </fileset> 276 </nbjpdareload> 277 </sequential> 278 </macrodef> 279 </target> 280 <target name="-init-debug-args"> 281 <property name="version-output" value="java version "${ant.java.version}"/> 282 <condition property="have-jdk-older-than-1.4"> 283 <or> 284 <contains string="${version-output}" substring="java version "1.0"/> 285 <contains string="${version-output}" substring="java version "1.1"/> 286 <contains string="${version-output}" substring="java version "1.2"/> 287 <contains string="${version-output}" substring="java version "1.3"/> 288 </or> 289 </condition> 290 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> 291 <istrue value="${have-jdk-older-than-1.4}"/> 292 </condition> 293 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> 294 <os family="windows"/> 295 </condition> 296 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> 297 <isset property="debug.transport"/> 298 </condition> 299 </target> 300 <target depends="-init-debug-args" name="-init-macrodef-debug"> 301 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 302 <attribute default="${main.class}" name="classname"/> 303 <attribute default="${debug.classpath}" name="classpath"/> 304 <element name="customize" optional="true"/> 305 <sequential> 306 <java classname="@{classname}" dir="${work.dir}" fork="true"> 307 <jvmarg line="${debug-args-line}"/> 308 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> 309 <jvmarg value="-Dfile.encoding=${source.encoding}"/> 310 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/> 311 <jvmarg line="${run.jvmargs}"/> 312 <classpath> 313 <path path="@{classpath}"/> 314 </classpath> 315 <syspropertyset> 316 <propertyref prefix="run-sys-prop."/> 317 <mapper from="run-sys-prop.*" to="*" type="glob"/> 318 </syspropertyset> 319 <customize/> 320 </java> 321 </sequential> 322 </macrodef> 323 </target> 324 <target name="-init-macrodef-java"> 325 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> 326 <attribute default="${main.class}" name="classname"/> 327 <attribute default="${run.classpath}" name="classpath"/> 328 <element name="customize" optional="true"/> 329 <sequential> 330 <java classname="@{classname}" dir="${work.dir}" fork="true"> 331 <jvmarg value="-Dfile.encoding=${source.encoding}"/> 332 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/> 333 <jvmarg line="${run.jvmargs}"/> 334 <classpath> 335 <path path="@{classpath}"/> 336 </classpath> 337 <syspropertyset> 338 <propertyref prefix="run-sys-prop."/> 339 <mapper from="run-sys-prop.*" to="*" type="glob"/> 340 </syspropertyset> 341 <customize/> 342 </java> 343 </sequential> 344 </macrodef> 345 </target> 346 <target name="-init-presetdef-jar"> 347 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> 348 <jar compress="${jar.compress}" jarfile="${dist.jar}"> 349 <j2seproject1:fileset dir="${build.classes.dir}"/> 350 </jar> 351 </presetdef> 352 </target> 353 <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"/> 354 <!-- 355 =================== 356 COMPILATION SECTION 357 =================== 358 --> 359 <target depends="init" name="deps-jar" unless="no.deps"/> 360 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> 361 <target depends="init" name="-check-automatic-build"> 362 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> 363 </target> 364 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> 365 <antcall target="clean"/> 366 </target> 367 <target depends="init,deps-jar" name="-pre-pre-compile"> 368 <mkdir dir="${build.classes.dir}"/> 369 </target> 370 <target name="-pre-compile"> 371 <!-- Empty placeholder for easier customization. --> 372 <!-- You can override this target in the ../build.xml file. --> 373 </target> 374 <target if="do.depend.true" name="-compile-depend"> 375 <pathconvert property="build.generated.subdirs"> 376 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> 377 <include name="*"/> 378 </dirset> 379 </pathconvert> 380 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> 381 </target> 382 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile"> 383 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> 384 <copy todir="${build.classes.dir}"> 385 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 386 </copy> 387 </target> 388 <target name="-post-compile"> 389 <!-- Empty placeholder for easier customization. --> 390 <!-- You can override this target in the ../build.xml file. --> 391 </target> 392 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> 393 <target name="-pre-compile-single"> 394 <!-- Empty placeholder for easier customization. --> 395 <!-- You can override this target in the ../build.xml file. --> 396 </target> 397 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> 398 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> 399 <j2seproject3:force-recompile/> 400 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> 401 </target> 402 <target name="-post-compile-single"> 403 <!-- Empty placeholder for easier customization. --> 404 <!-- You can override this target in the ../build.xml file. --> 405 </target> 406 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> 407 <!-- 408 ==================== 409 JAR BUILDING SECTION 410 ==================== 411 --> 412 <target depends="init" name="-pre-pre-jar"> 413 <dirname file="${dist.jar}" property="dist.jar.dir"/> 414 <mkdir dir="${dist.jar.dir}"/> 415 </target> 416 <target name="-pre-jar"> 417 <!-- Empty placeholder for easier customization. --> 418 <!-- You can override this target in the ../build.xml file. --> 419 </target> 420 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available"> 421 <j2seproject1:jar/> 422 </target> 423 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> 424 <j2seproject1:jar manifest="${manifest.file}"/> 425 </target> 426 <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"> 427 <j2seproject1:jar manifest="${manifest.file}"> 428 <j2seproject1:manifest> 429 <j2seproject1:attribute name="Main-Class" value="${main.class}"/> 430 </j2seproject1:manifest> 431 </j2seproject1:jar> 432 <echo>To run this application from the command line without Ant, try:</echo> 433 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> 434 <property location="${dist.jar}" name="dist.jar.resolved"/> 435 <pathconvert property="run.classpath.with.dist.jar"> 436 <path path="${run.classpath}"/> 437 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> 438 </pathconvert> 439 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> 440 </target> 441 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries"> 442 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> 443 <pathconvert property="run.classpath.without.build.classes.dir"> 444 <path path="${run.classpath}"/> 445 <map from="${build.classes.dir.resolved}" to=""/> 446 </pathconvert> 447 <pathconvert pathsep=" " property="jar.classpath"> 448 <path path="${run.classpath.without.build.classes.dir}"/> 449 <chainedmapper> 450 <flattenmapper/> 451 <globmapper from="*" to="lib/*"/> 452 </chainedmapper> 453 </pathconvert> 454 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> 455 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> 456 <fileset dir="${build.classes.dir}"/> 457 <manifest> 458 <attribute name="Main-Class" value="${main.class}"/> 459 <attribute name="Class-Path" value="${jar.classpath}"/> 460 </manifest> 461 </copylibs> 462 <echo>To run this application from the command line without Ant, try:</echo> 463 <property location="${dist.jar}" name="dist.jar.resolved"/> 464 <echo>java -jar "${dist.jar.resolved}"</echo> 465 </target> 466 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="libs.CopyLibs.classpath" name="-do-jar-with-libraries-without-manifest" unless="manifest.available+main.class"> 467 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> 468 <pathconvert property="run.classpath.without.build.classes.dir"> 469 <path path="${run.classpath}"/> 470 <map from="${build.classes.dir.resolved}" to=""/> 471 </pathconvert> 472 <pathconvert pathsep=" " property="jar.classpath"> 473 <path path="${run.classpath.without.build.classes.dir}"/> 474 <chainedmapper> 475 <flattenmapper/> 476 <globmapper from="*" to="lib/*"/> 477 </chainedmapper> 478 </pathconvert> 479 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> 480 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> 481 <fileset dir="${build.classes.dir}"/> 482 </copylibs> 483 </target> 484 <target name="-post-jar"> 485 <!-- Empty placeholder for easier customization. --> 486 <!-- You can override this target in the ../build.xml file. --> 487 </target> 488 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/> 489 <!-- 490 ================= 491 EXECUTION SECTION 492 ================= 493 --> 494 <target depends="init,compile" description="Run a main class." name="run"> 495 <j2seproject1:java> 496 <customize> 497 <arg line="${application.args}"/> 498 </customize> 499 </j2seproject1:java> 500 </target> 501 <target name="-do-not-recompile"> 502 <property name="javac.includes.binary" value=""/> 503 </target> 504 <target depends="init,-do-not-recompile,compile-single" name="run-single"> 505 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 506 <j2seproject1:java classname="${run.class}"/> 507 </target> 508 <target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main"> 509 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 510 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> 511 </target> 512 <!-- 513 ================= 514 DEBUGGING SECTION 515 ================= 516 --> 517 <target depends="init" if="netbeans.home" name="-debug-start-debugger"> 518 <j2seproject1:nbjpdastart name="${debug.class}"/> 519 </target> 520 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> 521 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> 522 </target> 523 <target depends="init,compile" name="-debug-start-debuggee"> 524 <j2seproject3:debug> 525 <customize> 526 <arg line="${application.args}"/> 527 </customize> 528 </j2seproject3:debug> 529 </target> 530 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> 531 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> 532 <j2seproject1:nbjpdastart stopclassname="${main.class}"/> 533 </target> 534 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> 535 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> 536 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> 537 <j2seproject3:debug classname="${debug.class}"/> 538 </target> 539 <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> 540 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> 541 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> 542 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> 543 </target> 544 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> 545 <target depends="init" name="-pre-debug-fix"> 546 <fail unless="fix.includes">Must set fix.includes</fail> 547 <property name="javac.includes" value="${fix.includes}.java"/> 548 </target> 549 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> 550 <j2seproject1:nbjpdareload/> 551 </target> 552 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> 553 <!-- 554 =============== 555 JAVADOC SECTION 556 =============== 557 --> 558 <target depends="init" name="-javadoc-build"> 559 <mkdir dir="${dist.javadoc.dir}"/> 560 <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}"> 561 <classpath> 562 <path path="${javac.classpath}"/> 563 </classpath> 564 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> 565 <filename name="**/*.java"/> 566 </fileset> 567 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> 568 <include name="**/*.java"/> 569 </fileset> 570 </javadoc> 571 </target> 572 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> 573 <nbbrowse file="${dist.javadoc.dir}/index.html"/> 574 </target> 575 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> 576 <!-- 577 ========================= 578 JUNIT COMPILATION SECTION 579 ========================= 580 --> 581 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> 582 <mkdir dir="${build.test.classes.dir}"/> 583 </target> 584 <target name="-pre-compile-test"> 585 <!-- Empty placeholder for easier customization. --> 586 <!-- You can override this target in the ../build.xml file. --> 587 </target> 588 <target if="do.depend.true" name="-compile-test-depend"> 589 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> 590 </target> 591 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> 592 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> 593 <copy todir="${build.test.classes.dir}"> 594 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 595 </copy> 596 </target> 597 <target name="-post-compile-test"> 598 <!-- Empty placeholder for easier customization. --> 599 <!-- You can override this target in the ../build.xml file. --> 600 </target> 601 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> 602 <target name="-pre-compile-test-single"> 603 <!-- Empty placeholder for easier customization. --> 604 <!-- You can override this target in the ../build.xml file. --> 605 </target> 606 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> 607 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> 608 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> 609 <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}"/> 610 <copy todir="${build.test.classes.dir}"> 611 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 612 </copy> 613 </target> 614 <target name="-post-compile-test-single"> 615 <!-- Empty placeholder for easier customization. --> 616 <!-- You can override this target in the ../build.xml file. --> 617 </target> 618 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> 619 <!-- 620 ======================= 621 JUNIT EXECUTION SECTION 622 ======================= 623 --> 624 <target depends="init" if="have.tests" name="-pre-test-run"> 625 <mkdir dir="${build.test.results.dir}"/> 626 </target> 627 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> 628 <j2seproject3:junit testincludes="**/*Test.java"/> 629 </target> 630 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> 631 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> 632 </target> 633 <target depends="init" if="have.tests" name="test-report"/> 634 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> 635 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> 636 <target depends="init" if="have.tests" name="-pre-test-run-single"> 637 <mkdir dir="${build.test.results.dir}"/> 638 </target> 639 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> 640 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> 641 <j2seproject3:junit excludes="" includes="${test.includes}"/> 642 </target> 643 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> 644 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> 645 </target> 646 <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"/> 647 <!-- 648 ======================= 649 JUNIT DEBUGGING SECTION 650 ======================= 651 --> 652 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> 653 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> 654 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> 655 <delete file="${test.report.file}"/> 656 <mkdir dir="${build.test.results.dir}"/> 657 <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}"> 658 <customize> 659 <syspropertyset> 660 <propertyref prefix="test-sys-prop."/> 661 <mapper from="test-sys-prop.*" to="*" type="glob"/> 662 </syspropertyset> 663 <arg value="${test.class}"/> 664 <arg value="showoutput=true"/> 665 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> 666 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> 667 </customize> 668 </j2seproject3:debug> 669 </target> 670 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> 671 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> 672 </target> 673 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> 674 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> 675 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> 676 </target> 677 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> 678 <!-- 679 ========================= 680 APPLET EXECUTION SECTION 681 ========================= 682 --> 683 <target depends="init,compile-single" name="run-applet"> 684 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> 685 <j2seproject1:java classname="sun.applet.AppletViewer"> 686 <customize> 687 <arg value="${applet.url}"/> 688 </customize> 689 </j2seproject1:java> 690 </target> 691 <!-- 692 ========================= 693 APPLET DEBUGGING SECTION 694 ========================= 695 --> 696 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> 697 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> 698 <j2seproject3:debug classname="sun.applet.AppletViewer"> 699 <customize> 700 <arg value="${applet.url}"/> 701 </customize> 702 </j2seproject3:debug> 703 </target> 704 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> 705 <!-- 706 =============== 707 CLEANUP SECTION 708 =============== 709 --> 710 <target depends="init" name="deps-clean" unless="no.deps"/> 711 <target depends="init" name="-do-clean"> 712 <delete dir="${build.dir}"/> 713 <delete dir="${dist.dir}"/> 714 </target> 715 <target name="-post-clean"> 716 <!-- Empty placeholder for easier customization. --> 717 <!-- You can override this target in the ../build.xml file. --> 718 </target> 719 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> 720</project> 721