1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 *** GENERATED FROM project.xml - DO NOT EDIT *** 4 *** EDIT ../build.xml INSTEAD *** 5 6 For the purpose of easier reading the script 7 is divided into following sections: 8 9 - initialization 10 - compilation 11 - jar 12 - execution 13 - debugging 14 - javadoc 15 - test compilation 16 - test execution 17 - test debugging 18 - applet 19 - cleanup 20 21 --> 22 <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="buildSrc-impl"> 23 <fail message="Please build using Ant 1.8.0 or higher."> 24 <condition> 25 <not> 26 <antversion atleast="1.8.0"/> 27 </not> 28 </condition> 29 </fail> 30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> 31 <!-- 32 ====================== 33 INITIALIZATION SECTION 34 ====================== 35 --> 36 <target name="-pre-init"> 37 <!-- Empty placeholder for easier customization. --> 38 <!-- You can override this target in the ../build.xml file. --> 39 </target> 40 <target depends="-pre-init" name="-init-private"> 41 <property file="nbproject/private/config.properties"/> 42 <property file="nbproject/private/configs/${config}.properties"/> 43 <property file="nbproject/private/private.properties"/> 44 </target> 45 <target depends="-pre-init,-init-private" name="-init-user"> 46 <property file="${user.properties.file}"/> 47 <!-- The two properties below are usually overridden --> 48 <!-- by the active platform. Just a fallback. --> 49 <property name="default.javac.source" value="1.4"/> 50 <property name="default.javac.target" value="1.4"/> 51 </target> 52 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> 53 <property file="nbproject/configs/${config}.properties"/> 54 <property file="nbproject/project.properties"/> 55 </target> 56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> 57 <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/> 58 <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/> 59 <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/> 60 <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/> 61 <condition property="platform.javac" value="${platform.home}/bin/javac"> 62 <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/> 63 </condition> 64 <property name="platform.javac" value="${platform.javac.tmp}"/> 65 <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/> 66 <condition property="platform.java" value="${platform.home}/bin/java"> 67 <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/> 68 </condition> 69 <property name="platform.java" value="${platform.java.tmp}"/> 70 <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/> 71 <condition property="platform.javadoc" value="${platform.home}/bin/javadoc"> 72 <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/> 73 </condition> 74 <property name="platform.javadoc" value="${platform.javadoc.tmp}"/> 75 <condition property="platform.invalid" value="true"> 76 <or> 77 <contains string="${platform.javac}" substring="$${platforms."/> 78 <contains string="${platform.java}" substring="$${platforms."/> 79 <contains string="${platform.javadoc}" substring="$${platforms."/> 80 </or> 81 </condition> 82 <fail unless="platform.home">Must set platform.home</fail> 83 <fail unless="platform.bootcp">Must set platform.bootcp</fail> 84 <fail unless="platform.java">Must set platform.java</fail> 85 <fail unless="platform.javac">Must set platform.javac</fail> 86 <fail if="platform.invalid"> 87 The J2SE Platform is not correctly set up. 88 Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. 89 Either open the project in the IDE and setup the Platform with the same name or add it manually. 90 For example like this: 91 ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) 92 or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) 93 </fail> 94 <available file="${manifest.file}" property="manifest.available"/> 95 <condition property="splashscreen.available"> 96 <and> 97 <not> 98 <equals arg1="${application.splash}" arg2="" trim="true"/> 99 </not> 100 <available file="${application.splash}"/> 101 </and> 102 </condition> 103 <condition property="main.class.available"> 104 <and> 105 <isset property="main.class"/> 106 <not> 107 <equals arg1="${main.class}" arg2="" trim="true"/> 108 </not> 109 </and> 110 </condition> 111 <condition property="profile.available"> 112 <and> 113 <isset property="javac.profile"/> 114 <length length="0" string="${javac.profile}" when="greater"/> 115 <matches pattern="1\.[89](\..*)?" string="${javac.source}"/> 116 </and> 117 </condition> 118 <condition property="do.archive"> 119 <or> 120 <not> 121 <istrue value="${jar.archive.disabled}"/> 122 </not> 123 <istrue value="${not.archive.disabled}"/> 124 </or> 125 </condition> 126 <condition property="do.mkdist"> 127 <and> 128 <isset property="do.archive"/> 129 <isset property="libs.CopyLibs.classpath"/> 130 <not> 131 <istrue value="${mkdist.disabled}"/> 132 </not> 133 </and> 134 </condition> 135 <condition property="do.archive+manifest.available"> 136 <and> 137 <isset property="manifest.available"/> 138 <istrue value="${do.archive}"/> 139 </and> 140 </condition> 141 <condition property="do.archive+main.class.available"> 142 <and> 143 <isset property="main.class.available"/> 144 <istrue value="${do.archive}"/> 145 </and> 146 </condition> 147 <condition property="do.archive+splashscreen.available"> 148 <and> 149 <isset property="splashscreen.available"/> 150 <istrue value="${do.archive}"/> 151 </and> 152 </condition> 153 <condition property="do.archive+profile.available"> 154 <and> 155 <isset property="profile.available"/> 156 <istrue value="${do.archive}"/> 157 </and> 158 </condition> 159 <condition property="have.tests"> 160 <or/> 161 </condition> 162 <condition property="have.sources"> 163 <or> 164 <available file="${src.generated-src.dir}"/> 165 <available file="${src.dir}"/> 166 </or> 167 </condition> 168 <condition property="netbeans.home+have.tests"> 169 <and> 170 <isset property="netbeans.home"/> 171 <isset property="have.tests"/> 172 </and> 173 </condition> 174 <condition property="no.javadoc.preview"> 175 <and> 176 <isset property="javadoc.preview"/> 177 <isfalse value="${javadoc.preview}"/> 178 </and> 179 </condition> 180 <property name="run.jvmargs" value=""/> 181 <property name="run.jvmargs.ide" value=""/> 182 <property name="javac.compilerargs" value=""/> 183 <property name="work.dir" value="${basedir}"/> 184 <condition property="no.deps"> 185 <and> 186 <istrue value="${no.dependencies}"/> 187 </and> 188 </condition> 189 <property name="javac.debug" value="true"/> 190 <property name="javadoc.preview" value="true"/> 191 <property name="application.args" value=""/> 192 <property name="source.encoding" value="${file.encoding}"/> 193 <property name="runtime.encoding" value="${source.encoding}"/> 194 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> 195 <and> 196 <isset property="javadoc.encoding"/> 197 <not> 198 <equals arg1="${javadoc.encoding}" arg2=""/> 199 </not> 200 </and> 201 </condition> 202 <property name="javadoc.encoding.used" value="${source.encoding}"/> 203 <property name="includes" value="**"/> 204 <property name="excludes" value=""/> 205 <property name="do.depend" value="false"/> 206 <condition property="do.depend.true"> 207 <istrue value="${do.depend}"/> 208 </condition> 209 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> 210 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> 211 <and> 212 <isset property="endorsed.classpath"/> 213 <not> 214 <equals arg1="${endorsed.classpath}" arg2="" trim="true"/> 215 </not> 216 </and> 217 </condition> 218 <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}"> 219 <isset property="profile.available"/> 220 </condition> 221 <property name="jar.index" value="false"/> 222 <property name="jar.index.metainf" value="${jar.index}"/> 223 <property name="copylibs.rebase" value="true"/> 224 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> 225 <condition property="junit.available"> 226 <or> 227 <available classname="org.junit.Test" classpath="${run.test.classpath}"/> 228 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/> 229 </or> 230 </condition> 231 <condition property="testng.available"> 232 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/> 233 </condition> 234 <condition property="junit+testng.available"> 235 <and> 236 <istrue value="${junit.available}"/> 237 <istrue value="${testng.available}"/> 238 </and> 239 </condition> 240 <condition else="testng" property="testng.mode" value="mixed"> 241 <istrue value="${junit+testng.available}"/> 242 </condition> 243 <condition else="" property="testng.debug.mode" value="-mixed"> 244 <istrue value="${junit+testng.available}"/> 245 </condition> 246 </target> 247 <target name="-post-init"> 248 <!-- Empty placeholder for easier customization. --> 249 <!-- You can override this target in the ../build.xml file. --> 250 </target> 251 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> 252 <fail unless="src.generated-src.dir">Must set src.generated-src.dir</fail> 253 <fail unless="src.dir">Must set src.dir</fail> 254 <fail unless="build.dir">Must set build.dir</fail> 255 <fail unless="dist.dir">Must set dist.dir</fail> 256 <fail unless="build.classes.dir">Must set build.classes.dir</fail> 257 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> 258 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> 259 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> 260 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> 261 <fail unless="dist.jar">Must set dist.jar</fail> 262 </target> 263 <target name="-init-macrodef-property"> 264 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> 265 <attribute name="name"/> 266 <attribute name="value"/> 267 <sequential> 268 <property name="@{name}" value="${@{value}}"/> 269 </sequential> 270 </macrodef> 271 </target> 272 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> 273 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> 274 <attribute default="${src.generated-src.dir}:${src.dir}" name="srcdir"/> 275 <attribute default="${build.classes.dir}" name="destdir"/> 276 <attribute default="${javac.classpath}" name="classpath"/> 277 <attribute default="${javac.processorpath}" name="processorpath"/> 278 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> 279 <attribute default="${includes}" name="includes"/> 280 <attribute default="${excludes}" name="excludes"/> 281 <attribute default="${javac.debug}" name="debug"/> 282 <attribute default="${empty.dir}" name="sourcepath"/> 283 <attribute default="${empty.dir}" name="gensrcdir"/> 284 <element name="customize" optional="true"/> 285 <sequential> 286 <property location="${build.dir}/empty" name="empty.dir"/> 287 <mkdir dir="${empty.dir}"/> 288 <mkdir dir="@{apgeneratedsrcdir}"/> 289 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> 290 <src> 291 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> 292 <include name="*"/> 293 </dirset> 294 </src> 295 <classpath> 296 <path path="@{classpath}"/> 297 </classpath> 298 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> 299 <compilerarg line="${javac.profile.cmd.line.arg}"/> 300 <compilerarg line="${javac.compilerargs}"/> 301 <compilerarg value="-processorpath"/> 302 <compilerarg path="@{processorpath}:${empty.dir}"/> 303 <compilerarg line="${ap.processors.internal}"/> 304 <compilerarg line="${annotation.processing.processor.options}"/> 305 <compilerarg value="-s"/> 306 <compilerarg path="@{apgeneratedsrcdir}"/> 307 <compilerarg line="${ap.proc.none.internal}"/> 308 <customize/> 309 </javac> 310 </sequential> 311 </macrodef> 312 </target> 313 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> 314 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> 315 <attribute default="${src.generated-src.dir}:${src.dir}" name="srcdir"/> 316 <attribute default="${build.classes.dir}" name="destdir"/> 317 <attribute default="${javac.classpath}" name="classpath"/> 318 <attribute default="${javac.processorpath}" name="processorpath"/> 319 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> 320 <attribute default="${includes}" name="includes"/> 321 <attribute default="${excludes}" name="excludes"/> 322 <attribute default="${javac.debug}" name="debug"/> 323 <attribute default="${empty.dir}" name="sourcepath"/> 324 <attribute default="${empty.dir}" name="gensrcdir"/> 325 <element name="customize" optional="true"/> 326 <sequential> 327 <property location="${build.dir}/empty" name="empty.dir"/> 328 <mkdir dir="${empty.dir}"/> 329 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> 330 <src> 331 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> 332 <include name="*"/> 333 </dirset> 334 </src> 335 <classpath> 336 <path path="@{classpath}"/> 337 </classpath> 338 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> 339 <compilerarg line="${javac.profile.cmd.line.arg}"/> 340 <compilerarg line="${javac.compilerargs}"/> 341 <customize/> 342 </javac> 343 </sequential> 344 </macrodef> 345 </target> 346 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> 347 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> 348 <attribute default="${src.generated-src.dir}:${src.dir}" name="srcdir"/> 349 <attribute default="${build.classes.dir}" name="destdir"/> 350 <attribute default="${javac.classpath}" name="classpath"/> 351 <sequential> 352 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> 353 <classpath> 354 <path path="@{classpath}"/> 355 </classpath> 356 </depend> 357 </sequential> 358 </macrodef> 359 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> 360 <attribute default="${build.classes.dir}" name="destdir"/> 361 <sequential> 362 <fail unless="javac.includes">Must set javac.includes</fail> 363 <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> 364 <path> 365 <filelist dir="@{destdir}" files="${javac.includes}"/> 366 </path> 367 <globmapper from="*.java" to="*.class"/> 368 </pathconvert> 369 <tempfile deleteonexit="true" property="javac.includesfile.binary"/> 370 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> 371 <delete> 372 <files includesfile="${javac.includesfile.binary}"/> 373 </delete> 374 <delete> 375 <fileset file="${javac.includesfile.binary}"/> 376 </delete> 377 </sequential> 378 </macrodef> 379 </target> 380 <target if="${junit.available}" name="-init-macrodef-junit-init"> 381 <condition else="false" property="nb.junit.batch" value="true"> 382 <and> 383 <istrue value="${junit.available}"/> 384 <not> 385 <isset property="test.method"/> 386 </not> 387 </and> 388 </condition> 389 <condition else="false" property="nb.junit.single" value="true"> 390 <and> 391 <istrue value="${junit.available}"/> 392 <isset property="test.method"/> 393 </and> 394 </condition> 395 </target> 396 <target name="-init-test-properties"> 397 <property name="test.binaryincludes" value="<nothing>"/> 398 <property name="test.binarytestincludes" value=""/> 399 <property name="test.binaryexcludes" value=""/> 400 </target> 401 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}"> 402 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> 403 <attribute default="${includes}" name="includes"/> 404 <attribute default="${excludes}" name="excludes"/> 405 <attribute default="**" name="testincludes"/> 406 <attribute default="" name="testmethods"/> 407 <element name="customize" optional="true"/> 408 <sequential> 409 <property name="junit.forkmode" value="perTest"/> 410 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 411 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 412 <syspropertyset> 413 <propertyref prefix="test-sys-prop."/> 414 <mapper from="test-sys-prop.*" to="*" type="glob"/> 415 </syspropertyset> 416 <formatter type="brief" usefile="false"/> 417 <formatter type="xml"/> 418 <jvmarg value="-ea"/> 419 <customize/> 420 </junit> 421 </sequential> 422 </macrodef> 423 </target> 424 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}"> 425 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> 426 <attribute default="${includes}" name="includes"/> 427 <attribute default="${excludes}" name="excludes"/> 428 <attribute default="**" name="testincludes"/> 429 <attribute default="" name="testmethods"/> 430 <element name="customize" optional="true"/> 431 <sequential> 432 <property name="junit.forkmode" value="perTest"/> 433 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 434 <batchtest todir="${build.test.results.dir}"> 435 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}"> 436 <filename name="${test.binarytestincludes}"/> 437 </fileset> 438 </batchtest> 439 <syspropertyset> 440 <propertyref prefix="test-sys-prop."/> 441 <mapper from="test-sys-prop.*" to="*" type="glob"/> 442 </syspropertyset> 443 <formatter type="brief" usefile="false"/> 444 <formatter type="xml"/> 445 <jvmarg value="-ea"/> 446 <customize/> 447 </junit> 448 </sequential> 449 </macrodef> 450 </target> 451 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/> 452 <target if="${testng.available}" name="-init-macrodef-testng"> 453 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3"> 454 <attribute default="${includes}" name="includes"/> 455 <attribute default="${excludes}" name="excludes"/> 456 <attribute default="**" name="testincludes"/> 457 <attribute default="" name="testmethods"/> 458 <element name="customize" optional="true"/> 459 <sequential> 460 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}"> 461 <isset property="test.method"/> 462 </condition> 463 <union id="test.set"/> 464 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> 465 <testng classfilesetref="test.set" failureProperty="tests.failed" jvm="${platform.java}" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="buildSrc" testname="TestNG tests" workingDir="${work.dir}"> 466 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> 467 <propertyset> 468 <propertyref prefix="test-sys-prop."/> 469 <mapper from="test-sys-prop.*" to="*" type="glob"/> 470 </propertyset> 471 <customize/> 472 </testng> 473 </sequential> 474 </macrodef> 475 </target> 476 <target name="-init-macrodef-test-impl"> 477 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 478 <attribute default="${includes}" name="includes"/> 479 <attribute default="${excludes}" name="excludes"/> 480 <attribute default="**" name="testincludes"/> 481 <attribute default="" name="testmethods"/> 482 <element implicit="true" name="customize" optional="true"/> 483 <sequential> 484 <echo>No tests executed.</echo> 485 </sequential> 486 </macrodef> 487 </target> 488 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl"> 489 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 490 <attribute default="${includes}" name="includes"/> 491 <attribute default="${excludes}" name="excludes"/> 492 <attribute default="**" name="testincludes"/> 493 <attribute default="" name="testmethods"/> 494 <element implicit="true" name="customize" optional="true"/> 495 <sequential> 496 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 497 <customize/> 498 </j2seproject3:junit> 499 </sequential> 500 </macrodef> 501 </target> 502 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl"> 503 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 504 <attribute default="${includes}" name="includes"/> 505 <attribute default="${excludes}" name="excludes"/> 506 <attribute default="**" name="testincludes"/> 507 <attribute default="" name="testmethods"/> 508 <element implicit="true" name="customize" optional="true"/> 509 <sequential> 510 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 511 <customize/> 512 </j2seproject3:testng> 513 </sequential> 514 </macrodef> 515 </target> 516 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test"> 517 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3"> 518 <attribute default="${includes}" name="includes"/> 519 <attribute default="${excludes}" name="excludes"/> 520 <attribute default="**" name="testincludes"/> 521 <attribute default="" name="testmethods"/> 522 <sequential> 523 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 524 <customize> 525 <classpath> 526 <path path="${run.test.classpath}"/> 527 </classpath> 528 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 529 <jvmarg line="${run.jvmargs}"/> 530 <jvmarg line="${run.jvmargs.ide}"/> 531 </customize> 532 </j2seproject3:test-impl> 533 </sequential> 534 </macrodef> 535 </target> 536 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}"> 537 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 538 <attribute default="${includes}" name="includes"/> 539 <attribute default="${excludes}" name="excludes"/> 540 <attribute default="**" name="testincludes"/> 541 <attribute default="" name="testmethods"/> 542 <element name="customize" optional="true"/> 543 <sequential> 544 <property name="junit.forkmode" value="perTest"/> 545 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 546 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 547 <syspropertyset> 548 <propertyref prefix="test-sys-prop."/> 549 <mapper from="test-sys-prop.*" to="*" type="glob"/> 550 </syspropertyset> 551 <formatter type="brief" usefile="false"/> 552 <formatter type="xml"/> 553 <jvmarg value="-ea"/> 554 <jvmarg line="${debug-args-line}"/> 555 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> 556 <customize/> 557 </junit> 558 </sequential> 559 </macrodef> 560 </target> 561 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch"> 562 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 563 <attribute default="${includes}" name="includes"/> 564 <attribute default="${excludes}" name="excludes"/> 565 <attribute default="**" name="testincludes"/> 566 <attribute default="" name="testmethods"/> 567 <element name="customize" optional="true"/> 568 <sequential> 569 <property name="junit.forkmode" value="perTest"/> 570 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 571 <batchtest todir="${build.test.results.dir}"> 572 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}"> 573 <filename name="${test.binarytestincludes}"/> 574 </fileset> 575 </batchtest> 576 <syspropertyset> 577 <propertyref prefix="test-sys-prop."/> 578 <mapper from="test-sys-prop.*" to="*" type="glob"/> 579 </syspropertyset> 580 <formatter type="brief" usefile="false"/> 581 <formatter type="xml"/> 582 <jvmarg value="-ea"/> 583 <jvmarg line="${debug-args-line}"/> 584 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> 585 <customize/> 586 </junit> 587 </sequential> 588 </macrodef> 589 </target> 590 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl"> 591 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 592 <attribute default="${includes}" name="includes"/> 593 <attribute default="${excludes}" name="excludes"/> 594 <attribute default="**" name="testincludes"/> 595 <attribute default="" name="testmethods"/> 596 <element implicit="true" name="customize" optional="true"/> 597 <sequential> 598 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 599 <customize/> 600 </j2seproject3:junit-debug> 601 </sequential> 602 </macrodef> 603 </target> 604 <target if="${testng.available}" name="-init-macrodef-testng-debug"> 605 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 606 <attribute default="${main.class}" name="testClass"/> 607 <attribute default="" name="testMethod"/> 608 <element name="customize2" optional="true"/> 609 <sequential> 610 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}"> 611 <isset property="test.method"/> 612 </condition> 613 <condition else="-suitename buildSrc -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}"> 614 <matches pattern=".*\.xml" string="@{testClass}"/> 615 </condition> 616 <delete dir="${build.test.results.dir}" quiet="true"/> 617 <mkdir dir="${build.test.results.dir}"/> 618 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}"> 619 <customize> 620 <customize2/> 621 <jvmarg value="-ea"/> 622 <arg line="${testng.debug.mode}"/> 623 <arg line="-d ${build.test.results.dir}"/> 624 <arg line="-listener org.testng.reporters.VerboseReporter"/> 625 <arg line="${testng.cmd.args}"/> 626 </customize> 627 </j2seproject3:debug> 628 </sequential> 629 </macrodef> 630 </target> 631 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl"> 632 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 633 <attribute default="${main.class}" name="testClass"/> 634 <attribute default="" name="testMethod"/> 635 <element implicit="true" name="customize2" optional="true"/> 636 <sequential> 637 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}"> 638 <customize2/> 639 </j2seproject3:testng-debug> 640 </sequential> 641 </macrodef> 642 </target> 643 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit"> 644 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 645 <attribute default="${includes}" name="includes"/> 646 <attribute default="${excludes}" name="excludes"/> 647 <attribute default="**" name="testincludes"/> 648 <attribute default="" name="testmethods"/> 649 <attribute default="${main.class}" name="testClass"/> 650 <attribute default="" name="testMethod"/> 651 <sequential> 652 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 653 <customize> 654 <classpath> 655 <path path="${run.test.classpath}"/> 656 </classpath> 657 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 658 <jvmarg line="${run.jvmargs}"/> 659 <jvmarg line="${run.jvmargs.ide}"/> 660 </customize> 661 </j2seproject3:test-debug-impl> 662 </sequential> 663 </macrodef> 664 </target> 665 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng"> 666 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 667 <attribute default="${includes}" name="includes"/> 668 <attribute default="${excludes}" name="excludes"/> 669 <attribute default="**" name="testincludes"/> 670 <attribute default="" name="testmethods"/> 671 <attribute default="${main.class}" name="testClass"/> 672 <attribute default="" name="testMethod"/> 673 <sequential> 674 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}"> 675 <customize2> 676 <syspropertyset> 677 <propertyref prefix="test-sys-prop."/> 678 <mapper from="test-sys-prop.*" to="*" type="glob"/> 679 </syspropertyset> 680 </customize2> 681 </j2seproject3:testng-debug-impl> 682 </sequential> 683 </macrodef> 684 </target> 685 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/> 686 <!-- 687 pre NB7.2 profiling section; consider it deprecated 688 --> 689 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/> 690 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init"> 691 <!-- Empty placeholder for easier customization. --> 692 <!-- You can override this target in the ../build.xml file. --> 693 </target> 694 <target if="profiler.info.jvmargs.agent" name="-profile-post-init"> 695 <!-- Empty placeholder for easier customization. --> 696 <!-- You can override this target in the ../build.xml file. --> 697 </target> 698 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile"> 699 <macrodef name="resolve"> 700 <attribute name="name"/> 701 <attribute name="value"/> 702 <sequential> 703 <property name="@{name}" value="${env.@{value}}"/> 704 </sequential> 705 </macrodef> 706 <macrodef name="profile"> 707 <attribute default="${main.class}" name="classname"/> 708 <element name="customize" optional="true"/> 709 <sequential> 710 <property environment="env"/> 711 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> 712 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> 713 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 714 <jvmarg value="${profiler.info.jvmargs.agent}"/> 715 <jvmarg line="${profiler.info.jvmargs}"/> 716 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> 717 <arg line="${application.args}"/> 718 <classpath> 719 <path path="${run.classpath}"/> 720 </classpath> 721 <syspropertyset> 722 <propertyref prefix="run-sys-prop."/> 723 <mapper from="run-sys-prop.*" to="*" type="glob"/> 724 </syspropertyset> 725 <customize/> 726 </java> 727 </sequential> 728 </macrodef> 729 </target> 730 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check"> 731 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> 732 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> 733 </target> 734 <!-- 735 end of pre NB7.2 profiling section 736 --> 737 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> 738 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> 739 <attribute default="${main.class}" name="name"/> 740 <attribute default="${debug.classpath}" name="classpath"/> 741 <attribute default="" name="stopclassname"/> 742 <sequential> 743 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> 744 <classpath> 745 <path path="@{classpath}"/> 746 </classpath> 747 <bootclasspath> 748 <path path="${platform.bootcp}"/> 749 </bootclasspath> 750 </nbjpdastart> 751 </sequential> 752 </macrodef> 753 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> 754 <attribute default="${build.classes.dir}" name="dir"/> 755 <sequential> 756 <nbjpdareload> 757 <fileset dir="@{dir}" includes="${fix.classes}"> 758 <include name="${fix.includes}*.class"/> 759 </fileset> 760 </nbjpdareload> 761 </sequential> 762 </macrodef> 763 </target> 764 <target name="-init-debug-args"> 765 <exec executable="${platform.java}" outputproperty="version-output"> 766 <arg value="-version"/> 767 </exec> 768 <condition property="have-jdk-older-than-1.4"> 769 <or> 770 <contains string="${version-output}" substring="java version "1.0"/> 771 <contains string="${version-output}" substring="java version "1.1"/> 772 <contains string="${version-output}" substring="java version "1.2"/> 773 <contains string="${version-output}" substring="java version "1.3"/> 774 </or> 775 </condition> 776 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> 777 <istrue value="${have-jdk-older-than-1.4}"/> 778 </condition> 779 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> 780 <os family="windows"/> 781 </condition> 782 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> 783 <isset property="debug.transport"/> 784 </condition> 785 </target> 786 <target depends="-init-debug-args" name="-init-macrodef-debug"> 787 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 788 <attribute default="${main.class}" name="classname"/> 789 <attribute default="${debug.classpath}" name="classpath"/> 790 <element name="customize" optional="true"/> 791 <sequential> 792 <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> 793 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 794 <jvmarg line="${debug-args-line}"/> 795 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> 796 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> 797 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> 798 <jvmarg line="${run.jvmargs}"/> 799 <jvmarg line="${run.jvmargs.ide}"/> 800 <classpath> 801 <path path="@{classpath}"/> 802 </classpath> 803 <syspropertyset> 804 <propertyref prefix="run-sys-prop."/> 805 <mapper from="run-sys-prop.*" to="*" type="glob"/> 806 </syspropertyset> 807 <customize/> 808 </java> 809 </sequential> 810 </macrodef> 811 </target> 812 <target name="-init-macrodef-java"> 813 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> 814 <attribute default="${main.class}" name="classname"/> 815 <attribute default="${run.classpath}" name="classpath"/> 816 <attribute default="jvm" name="jvm"/> 817 <element name="customize" optional="true"/> 818 <sequential> 819 <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> 820 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 821 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> 822 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> 823 <jvmarg line="${run.jvmargs}"/> 824 <jvmarg line="${run.jvmargs.ide}"/> 825 <classpath> 826 <path path="@{classpath}"/> 827 </classpath> 828 <syspropertyset> 829 <propertyref prefix="run-sys-prop."/> 830 <mapper from="run-sys-prop.*" to="*" type="glob"/> 831 </syspropertyset> 832 <customize/> 833 </java> 834 </sequential> 835 </macrodef> 836 </target> 837 <target name="-init-macrodef-copylibs"> 838 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> 839 <attribute default="${manifest.file}" name="manifest"/> 840 <element name="customize" optional="true"/> 841 <sequential> 842 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> 843 <pathconvert property="run.classpath.without.build.classes.dir"> 844 <path path="${run.classpath}"/> 845 <map from="${build.classes.dir.resolved}" to=""/> 846 </pathconvert> 847 <pathconvert pathsep=" " property="jar.classpath"> 848 <path path="${run.classpath.without.build.classes.dir}"/> 849 <chainedmapper> 850 <flattenmapper/> 851 <filtermapper> 852 <replacestring from=" " to="%20"/> 853 </filtermapper> 854 <globmapper from="*" to="lib/*"/> 855 </chainedmapper> 856 </pathconvert> 857 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> 858 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> 859 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> 860 <manifest> 861 <attribute name="Class-Path" value="${jar.classpath}"/> 862 <customize/> 863 </manifest> 864 </copylibs> 865 </sequential> 866 </macrodef> 867 </target> 868 <target name="-init-presetdef-jar"> 869 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> 870 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> 871 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> 872 </jar> 873 </presetdef> 874 </target> 875 <target name="-init-ap-cmdline-properties"> 876 <property name="annotation.processing.enabled" value="true"/> 877 <property name="annotation.processing.processors.list" value=""/> 878 <property name="annotation.processing.processor.options" value=""/> 879 <property name="annotation.processing.run.all.processors" value="true"/> 880 <property name="javac.processorpath" value="${javac.classpath}"/> 881 <property name="javac.test.processorpath" value="${javac.test.classpath}"/> 882 <condition property="ap.supported.internal" value="true"> 883 <not> 884 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> 885 </not> 886 </condition> 887 </target> 888 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> 889 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> 890 <isfalse value="${annotation.processing.run.all.processors}"/> 891 </condition> 892 <condition else="" property="ap.proc.none.internal" value="-proc:none"> 893 <isfalse value="${annotation.processing.enabled}"/> 894 </condition> 895 </target> 896 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> 897 <property name="ap.cmd.line.internal" value=""/> 898 </target> 899 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/> 900 <!-- 901 =================== 902 COMPILATION SECTION 903 =================== 904 --> 905 <target name="-deps-jar-init" unless="built-jar.properties"> 906 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> 907 <delete file="${built-jar.properties}" quiet="true"/> 908 </target> 909 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> 910 <echo level="warn" message="Cycle detected: buildSrc was already built"/> 911 </target> 912 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> 913 <mkdir dir="${build.dir}"/> 914 <touch file="${built-jar.properties}" verbose="false"/> 915 <property file="${built-jar.properties}" prefix="already.built.jar."/> 916 <antcall target="-warn-already-built-jar"/> 917 <propertyfile file="${built-jar.properties}"> 918 <entry key="${basedir}" value=""/> 919 </propertyfile> 920 </target> 921 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> 922 <target depends="init" name="-check-automatic-build"> 923 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> 924 </target> 925 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> 926 <antcall target="clean"/> 927 </target> 928 <target depends="init,deps-jar" name="-pre-pre-compile"> 929 <mkdir dir="${build.classes.dir}"/> 930 </target> 931 <target name="-pre-compile"> 932 <!-- Empty placeholder for easier customization. --> 933 <!-- You can override this target in the ../build.xml file. --> 934 </target> 935 <target if="do.depend.true" name="-compile-depend"> 936 <pathconvert property="build.generated.subdirs"> 937 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> 938 <include name="*"/> 939 </dirset> 940 </pathconvert> 941 <j2seproject3:depend srcdir="${src.generated-src.dir}:${src.dir}:${build.generated.subdirs}"/> 942 </target> 943 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> 944 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> 945 <copy todir="${build.classes.dir}"> 946 <fileset dir="${src.generated-src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 947 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 948 </copy> 949 </target> 950 <target if="has.persistence.xml" name="-copy-persistence-xml"> 951 <mkdir dir="${build.classes.dir}/META-INF"/> 952 <copy todir="${build.classes.dir}/META-INF"> 953 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/> 954 </copy> 955 </target> 956 <target name="-post-compile"> 957 <!-- Empty placeholder for easier customization. --> 958 <!-- You can override this target in the ../build.xml file. --> 959 </target> 960 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> 961 <target name="-pre-compile-single"> 962 <!-- Empty placeholder for easier customization. --> 963 <!-- You can override this target in the ../build.xml file. --> 964 </target> 965 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> 966 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> 967 <j2seproject3:force-recompile/> 968 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.generated-src.dir}:${src.dir}"/> 969 </target> 970 <target name="-post-compile-single"> 971 <!-- Empty placeholder for easier customization. --> 972 <!-- You can override this target in the ../build.xml file. --> 973 </target> 974 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> 975 <!-- 976 ==================== 977 JAR BUILDING SECTION 978 ==================== 979 --> 980 <target depends="init" name="-pre-pre-jar"> 981 <dirname file="${dist.jar}" property="dist.jar.dir"/> 982 <mkdir dir="${dist.jar.dir}"/> 983 </target> 984 <target name="-pre-jar"> 985 <!-- Empty placeholder for easier customization. --> 986 <!-- You can override this target in the ../build.xml file. --> 987 </target> 988 <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available"> 989 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> 990 <touch file="${tmp.manifest.file}" verbose="false"/> 991 </target> 992 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> 993 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> 994 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> 995 </target> 996 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> 997 <manifest file="${tmp.manifest.file}" mode="update"> 998 <attribute name="Main-Class" value="${main.class}"/> 999 </manifest> 1000 </target> 1001 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> 1002 <manifest file="${tmp.manifest.file}" mode="update"> 1003 <attribute name="Profile" value="${javac.profile}"/> 1004 </manifest> 1005 </target> 1006 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen"> 1007 <basename file="${application.splash}" property="splashscreen.basename"/> 1008 <mkdir dir="${build.classes.dir}/META-INF"/> 1009 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> 1010 <manifest file="${tmp.manifest.file}" mode="update"> 1011 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> 1012 </manifest> 1013 </target> 1014 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs"> 1015 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> 1016 <echo level="info">To run this application from the command line without Ant, try:</echo> 1017 <property location="${dist.jar}" name="dist.jar.resolved"/> 1018 <echo level="info">${platform.java} -jar "${dist.jar.resolved}"</echo> 1019 </target> 1020 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist"> 1021 <j2seproject1:jar manifest="${tmp.manifest.file}"/> 1022 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> 1023 <property location="${dist.jar}" name="dist.jar.resolved"/> 1024 <pathconvert property="run.classpath.with.dist.jar"> 1025 <path path="${run.classpath}"/> 1026 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> 1027 </pathconvert> 1028 <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}"> 1029 <isset property="main.class.available"/> 1030 </condition> 1031 <condition else="debug" property="jar.usage.level" value="info"> 1032 <isset property="main.class.available"/> 1033 </condition> 1034 <echo level="${jar.usage.level}" message="${jar.usage.message}"/> 1035 </target> 1036 <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest"> 1037 <delete> 1038 <fileset file="${tmp.manifest.file}"/> 1039 </delete> 1040 </target> 1041 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/> 1042 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/> 1043 <target name="-post-jar"> 1044 <!-- Empty placeholder for easier customization. --> 1045 <!-- You can override this target in the ../build.xml file. --> 1046 </target> 1047 <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/> 1048 <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/> 1049 <!-- 1050 ================= 1051 EXECUTION SECTION 1052 ================= 1053 --> 1054 <target depends="init,compile" description="Run a main class." name="run"> 1055 <j2seproject1:java> 1056 <customize> 1057 <arg line="${application.args}"/> 1058 </customize> 1059 </j2seproject1:java> 1060 </target> 1061 <target name="-do-not-recompile"> 1062 <property name="javac.includes.binary" value=""/> 1063 </target> 1064 <target depends="init,compile-single" name="run-single"> 1065 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1066 <j2seproject1:java classname="${run.class}"/> 1067 </target> 1068 <target depends="init,compile-test-single" name="run-test-with-main"> 1069 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1070 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> 1071 </target> 1072 <!-- 1073 ================= 1074 DEBUGGING SECTION 1075 ================= 1076 --> 1077 <target depends="init" if="netbeans.home" name="-debug-start-debugger"> 1078 <j2seproject1:nbjpdastart name="${debug.class}"/> 1079 </target> 1080 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> 1081 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> 1082 </target> 1083 <target depends="init,compile" name="-debug-start-debuggee"> 1084 <j2seproject3:debug> 1085 <customize> 1086 <arg line="${application.args}"/> 1087 </customize> 1088 </j2seproject3:debug> 1089 </target> 1090 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> 1091 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> 1092 <j2seproject1:nbjpdastart stopclassname="${main.class}"/> 1093 </target> 1094 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> 1095 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> 1096 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> 1097 <j2seproject3:debug classname="${debug.class}"/> 1098 </target> 1099 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> 1100 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> 1101 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> 1102 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> 1103 </target> 1104 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> 1105 <target depends="init" name="-pre-debug-fix"> 1106 <fail unless="fix.includes">Must set fix.includes</fail> 1107 <property name="javac.includes" value="${fix.includes}.java"/> 1108 </target> 1109 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> 1110 <j2seproject1:nbjpdareload/> 1111 </target> 1112 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> 1113 <!-- 1114 ================= 1115 PROFILING SECTION 1116 ================= 1117 --> 1118 <!-- 1119 pre NB7.2 profiler integration 1120 --> 1121 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72"> 1122 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 1123 <nbprofiledirect> 1124 <classpath> 1125 <path path="${run.classpath}"/> 1126 </classpath> 1127 </nbprofiledirect> 1128 <profile/> 1129 </target> 1130 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72"> 1131 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> 1132 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 1133 <nbprofiledirect> 1134 <classpath> 1135 <path path="${run.classpath}"/> 1136 </classpath> 1137 </nbprofiledirect> 1138 <profile classname="${profile.class}"/> 1139 </target> 1140 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72"> 1141 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 1142 <nbprofiledirect> 1143 <classpath> 1144 <path path="${run.classpath}"/> 1145 </classpath> 1146 </nbprofiledirect> 1147 <profile classname="sun.applet.AppletViewer"> 1148 <customize> 1149 <arg value="${applet.url}"/> 1150 </customize> 1151 </profile> 1152 </target> 1153 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72"> 1154 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 1155 <nbprofiledirect> 1156 <classpath> 1157 <path path="${run.test.classpath}"/> 1158 </classpath> 1159 </nbprofiledirect> 1160 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true"> 1161 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> 1162 <jvmarg value="${profiler.info.jvmargs.agent}"/> 1163 <jvmarg line="${profiler.info.jvmargs}"/> 1164 <test name="${profile.class}"/> 1165 <classpath> 1166 <path path="${run.test.classpath}"/> 1167 </classpath> 1168 <syspropertyset> 1169 <propertyref prefix="test-sys-prop."/> 1170 <mapper from="test-sys-prop.*" to="*" type="glob"/> 1171 </syspropertyset> 1172 <formatter type="brief" usefile="false"/> 1173 <formatter type="xml"/> 1174 </junit> 1175 </target> 1176 <!-- 1177 end of pre NB72 profiling section 1178 --> 1179 <target if="netbeans.home" name="-profile-check"> 1180 <condition property="profiler.configured"> 1181 <or> 1182 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/> 1183 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/> 1184 </or> 1185 </condition> 1186 </target> 1187 <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent"> 1188 <startprofiler/> 1189 <antcall target="run"/> 1190 </target> 1191 <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent"> 1192 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1193 <startprofiler/> 1194 <antcall target="run-single"/> 1195 </target> 1196 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/> 1197 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs"> 1198 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> 1199 <startprofiler/> 1200 <antcall target="test-single"/> 1201 </target> 1202 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main"> 1203 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1204 <startprofiler/> 1205 <antcal target="run-test-with-main"/> 1206 </target> 1207 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> 1208 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> 1209 <startprofiler/> 1210 <antcall target="run-applet"/> 1211 </target> 1212 <!-- 1213 =============== 1214 JAVADOC SECTION 1215 =============== 1216 --> 1217 <target depends="init" if="have.sources" name="-javadoc-build"> 1218 <mkdir dir="${dist.javadoc.dir}"/> 1219 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}"> 1220 <and> 1221 <isset property="endorsed.classpath.cmd.line.arg"/> 1222 <not> 1223 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/> 1224 </not> 1225 </and> 1226 </condition> 1227 <exec executable="${platform.java}" failonerror="false" outputproperty="platform.version.output"> 1228 <arg value="-version"/> 1229 </exec> 1230 <condition else="" property="bug5101868workaround" value="*.java"> 1231 <matches multiline="true" pattern="1\.[56](\..*)?" string="${platform.version.output}"/> 1232 </condition> 1233 <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" 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}"> 1234 <classpath> 1235 <path path="${javac.classpath}"/> 1236 </classpath> 1237 <fileset dir="${src.generated-src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}"> 1238 <filename name="**/*.java"/> 1239 </fileset> 1240 <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}"> 1241 <filename name="**/*.java"/> 1242 </fileset> 1243 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> 1244 <include name="**/*.java"/> 1245 <exclude name="*.java"/> 1246 </fileset> 1247 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/> 1248 </javadoc> 1249 <copy todir="${dist.javadoc.dir}"> 1250 <fileset dir="${src.generated-src.dir}" excludes="${excludes}" includes="${includes}"> 1251 <filename name="**/doc-files/**"/> 1252 </fileset> 1253 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> 1254 <filename name="**/doc-files/**"/> 1255 </fileset> 1256 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> 1257 <include name="**/doc-files/**"/> 1258 </fileset> 1259 </copy> 1260 </target> 1261 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> 1262 <nbbrowse file="${dist.javadoc.dir}/index.html"/> 1263 </target> 1264 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> 1265 <!-- 1266 ========================= 1267 TEST COMPILATION SECTION 1268 ========================= 1269 --> 1270 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> 1271 <mkdir dir="${build.test.classes.dir}"/> 1272 </target> 1273 <target name="-pre-compile-test"> 1274 <!-- Empty placeholder for easier customization. --> 1275 <!-- You can override this target in the ../build.xml file. --> 1276 </target> 1277 <target if="do.depend.true" name="-compile-test-depend"> 1278 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir=""/> 1279 </target> 1280 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> 1281 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir=""/> 1282 <copy todir="${build.test.classes.dir}"/> 1283 </target> 1284 <target name="-post-compile-test"> 1285 <!-- Empty placeholder for easier customization. --> 1286 <!-- You can override this target in the ../build.xml file. --> 1287 </target> 1288 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> 1289 <target name="-pre-compile-test-single"> 1290 <!-- Empty placeholder for easier customization. --> 1291 <!-- You can override this target in the ../build.xml file. --> 1292 </target> 1293 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> 1294 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> 1295 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> 1296 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="" srcdir=""/> 1297 <copy todir="${build.test.classes.dir}"/> 1298 </target> 1299 <target name="-post-compile-test-single"> 1300 <!-- Empty placeholder for easier customization. --> 1301 <!-- You can override this target in the ../build.xml file. --> 1302 </target> 1303 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> 1304 <!-- 1305 ======================= 1306 TEST EXECUTION SECTION 1307 ======================= 1308 --> 1309 <target depends="init" if="have.tests" name="-pre-test-run"> 1310 <mkdir dir="${build.test.results.dir}"/> 1311 </target> 1312 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> 1313 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/> 1314 </target> 1315 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> 1316 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> 1317 </target> 1318 <target depends="init" if="have.tests" name="test-report"/> 1319 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> 1320 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> 1321 <target depends="init" if="have.tests" name="-pre-test-run-single"> 1322 <mkdir dir="${build.test.results.dir}"/> 1323 </target> 1324 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> 1325 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> 1326 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/> 1327 </target> 1328 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> 1329 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> 1330 </target> 1331 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> 1332 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method"> 1333 <fail unless="test.class">Must select some files in the IDE or set test.class</fail> 1334 <fail unless="test.method">Must select some method in the IDE or set test.method</fail> 1335 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/> 1336 </target> 1337 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method"> 1338 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> 1339 </target> 1340 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/> 1341 <!-- 1342 ======================= 1343 TEST DEBUGGING SECTION 1344 ======================= 1345 --> 1346 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test"> 1347 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> 1348 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/> 1349 </target> 1350 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method"> 1351 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> 1352 <fail unless="test.method">Must select some method in the IDE or set test.method</fail> 1353 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/> 1354 </target> 1355 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> 1356 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> 1357 </target> 1358 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> 1359 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/> 1360 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> 1361 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> 1362 </target> 1363 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> 1364 <!-- 1365 ========================= 1366 APPLET EXECUTION SECTION 1367 ========================= 1368 --> 1369 <target depends="init,compile-single" name="run-applet"> 1370 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> 1371 <j2seproject1:java classname="sun.applet.AppletViewer"> 1372 <customize> 1373 <arg value="${applet.url}"/> 1374 </customize> 1375 </j2seproject1:java> 1376 </target> 1377 <!-- 1378 ========================= 1379 APPLET DEBUGGING SECTION 1380 ========================= 1381 --> 1382 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> 1383 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> 1384 <j2seproject3:debug classname="sun.applet.AppletViewer"> 1385 <customize> 1386 <arg value="${applet.url}"/> 1387 </customize> 1388 </j2seproject3:debug> 1389 </target> 1390 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> 1391 <!-- 1392 =============== 1393 CLEANUP SECTION 1394 =============== 1395 --> 1396 <target name="-deps-clean-init" unless="built-clean.properties"> 1397 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> 1398 <delete file="${built-clean.properties}" quiet="true"/> 1399 </target> 1400 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> 1401 <echo level="warn" message="Cycle detected: buildSrc was already built"/> 1402 </target> 1403 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> 1404 <mkdir dir="${build.dir}"/> 1405 <touch file="${built-clean.properties}" verbose="false"/> 1406 <property file="${built-clean.properties}" prefix="already.built.clean."/> 1407 <antcall target="-warn-already-built-clean"/> 1408 <propertyfile file="${built-clean.properties}"> 1409 <entry key="${basedir}" value=""/> 1410 </propertyfile> 1411 </target> 1412 <target depends="init" name="-do-clean"> 1413 <delete dir="${build.dir}"/> 1414 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> 1415 </target> 1416 <target name="-post-clean"> 1417 <!-- Empty placeholder for easier customization. --> 1418 <!-- You can override this target in the ../build.xml file. --> 1419 </target> 1420 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> 1421 <target name="-check-call-dep"> 1422 <property file="${call.built.properties}" prefix="already.built."/> 1423 <condition property="should.call.dep"> 1424 <and> 1425 <not> 1426 <isset property="already.built.${call.subproject}"/> 1427 </not> 1428 <available file="${call.script}"/> 1429 </and> 1430 </condition> 1431 </target> 1432 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> 1433 <ant antfile="${call.script}" inheritall="false" target="${call.target}"> 1434 <propertyset> 1435 <propertyref prefix="transfer."/> 1436 <mapper from="transfer.*" to="*" type="glob"/> 1437 </propertyset> 1438 </ant> 1439 </target> 1440 </project>