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