Changeset 14217
- Timestamp:
- 10/27/12 06:40:54 (8 years ago)
- Location:
- trunk/abcl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/contrib/mvn/jna.asd
r14192 r14217 3 3 ;;;; Need to have jna.jar present for CFFI to have a chance of working. 4 4 (asdf:defsystem :jna 5 :version "3. 4.0"5 :version "3.5.0" 6 6 :defsystem-depends-on (jss abcl-asdf) 7 ;; FIXME: 8 :components ((:mvn "net.java.dev.jna/jna/3. 4.0")))7 ;; FIXME: always seems to be resolving the LATEST maven artifact. 8 :components ((:mvn "net.java.dev.jna/jna/3.5.0"))) 9 9 10 10 (in-package :asdf) … … 24 24 (java:add-to-classpath (abcl-asdf:resolve "net.java.dev.jna:jna:3.4.0")) 25 25 (unless 26 (java:add-to-classpath #p"http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar") 27 (error "Failed to load jna-3.4.0.jar from the network via URI.")) 26 ;; Might want to download to local filesystem, then place in classpath 27 (java:add-to-classpath #p"http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.5.0/jna-3.5.0.jar") 28 (error "Failed to load jna-3.5.0.jar from the network via URI.")) 28 29 (error "Failed to load jna.jar via ABCL-ASDF."))) 29 30 (t (e) -
trunk/abcl/nbproject/build-impl.xml
r13697 r14217 13 13 - debugging 14 14 - javadoc 15 - junit compilation16 - junit execution17 - junit debugging15 - test compilation 16 - test execution 17 - test debugging 18 18 - applet 19 19 - cleanup … … 21 21 --> 22 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="abcl-impl"> 23 <fail message="Please build using Ant 1. 7.1or higher.">23 <fail message="Please build using Ant 1.8.0 or higher."> 24 24 <condition> 25 25 <not> 26 <antversion atleast="1. 7.1"/>26 <antversion atleast="1.8.0"/> 27 27 </not> 28 28 </condition> … … 157 157 </condition> 158 158 <property name="run.jvmargs" value=""/> 159 <property name="run.jvmargs.ide" value=""/> 159 160 <property name="javac.compilerargs" value=""/> 160 161 <property name="work.dir" value="${basedir}"/> … … 199 200 <property name="jar.index" value="false"/> 200 201 <property name="jar.index.metainf" value="${jar.index}"/> 202 <property name="copylibs.rebase" value="true"/> 201 203 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> 204 <condition property="junit.available"> 205 <or> 206 <available classname="org.junit.Test" classpath="${run.test.classpath}"/> 207 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/> 208 </or> 209 </condition> 210 <condition property="testng.available"> 211 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/> 212 </condition> 213 <condition property="junit+testng.available"> 214 <and> 215 <istrue value="${junit.available}"/> 216 <istrue value="${testng.available}"/> 217 </and> 218 </condition> 219 <condition else="testng" property="testng.mode" value="mixed"> 220 <istrue value="${junit+testng.available}"/> 221 </condition> 222 <condition else="" property="testng.debug.mode" value="-mixed"> 223 <istrue value="${junit+testng.available}"/> 224 </condition> 202 225 </target> 203 226 <target name="-post-init"> … … 332 355 </macrodef> 333 356 </target> 334 <target name="-init-macrodef-junit"> 357 <target if="${junit.available}" name="-init-macrodef-junit-init"> 358 <condition else="false" property="nb.junit.batch" value="true"> 359 <and> 360 <istrue value="${junit.available}"/> 361 <not> 362 <isset property="test.method"/> 363 </not> 364 </and> 365 </condition> 366 <condition else="false" property="nb.junit.single" value="true"> 367 <and> 368 <istrue value="${junit.available}"/> 369 <isset property="test.method"/> 370 </and> 371 </condition> 372 </target> 373 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}"> 335 374 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> 336 375 <attribute default="${includes}" name="includes"/> 337 376 <attribute default="${excludes}" name="excludes"/> 338 377 <attribute default="**" name="testincludes"/> 378 <attribute default="" name="testmethods"/> 379 <element name="customize" optional="true"/> 380 <sequential> 381 <property name="junit.forkmode" value="perTest"/> 382 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> 383 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 384 <syspropertyset> 385 <propertyref prefix="test-sys-prop."/> 386 <mapper from="test-sys-prop.*" to="*" type="glob"/> 387 </syspropertyset> 388 <formatter type="brief" usefile="false"/> 389 <formatter type="xml"/> 390 <jvmarg value="-ea"/> 391 <customize/> 392 </junit> 393 </sequential> 394 </macrodef> 395 </target> 396 <target if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}"> 397 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> 398 <attribute default="${includes}" name="includes"/> 399 <attribute default="${excludes}" name="excludes"/> 400 <attribute default="**" name="testincludes"/> 401 <attribute default="" name="testmethods"/> 402 <element name="customize" optional="true"/> 339 403 <sequential> 340 404 <property name="junit.forkmode" value="perTest"/> … … 345 409 </fileset> 346 410 </batchtest> 347 <classpath>348 <path path="${run.test.classpath}"/>349 </classpath>350 411 <syspropertyset> 351 412 <propertyref prefix="test-sys-prop."/> … … 354 415 <formatter type="brief" usefile="false"/> 355 416 <formatter type="xml"/> 356 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>357 417 <jvmarg value="-ea"/> 358 < jvmarg line="${run.jvmargs}"/>418 <customize/> 359 419 </junit> 360 420 </sequential> 361 421 </macrodef> 362 422 </target> 363 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/> 364 <target name="-profile-pre-init"> 423 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/> 424 <target if="${testng.available}" name="-init-macrodef-testng"> 425 <macrodef name="testng" 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 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}"> 433 <isset property="test.method"/> 434 </condition> 435 <union id="test.set"> 436 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}"> 437 <filename name="@{testincludes}"/> 438 </fileset> 439 </union> 440 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> 441 <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="abcl" testname="TestNG tests" workingDir="${work.dir}"> 442 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> 443 <propertyset> 444 <propertyref prefix="test-sys-prop."/> 445 <mapper from="test-sys-prop.*" to="*" type="glob"/> 446 </propertyset> 447 <customize/> 448 </testng> 449 </sequential> 450 </macrodef> 451 </target> 452 <target name="-init-macrodef-test-impl"> 453 <macrodef name="test-impl" 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 implicit="true" name="customize" optional="true"/> 459 <sequential> 460 <echo>No tests executed.</echo> 461 </sequential> 462 </macrodef> 463 </target> 464 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl"> 465 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 466 <attribute default="${includes}" name="includes"/> 467 <attribute default="${excludes}" name="excludes"/> 468 <attribute default="**" name="testincludes"/> 469 <attribute default="" name="testmethods"/> 470 <element implicit="true" name="customize" optional="true"/> 471 <sequential> 472 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 473 <customize/> 474 </j2seproject3:junit> 475 </sequential> 476 </macrodef> 477 </target> 478 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl"> 479 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 480 <attribute default="${includes}" name="includes"/> 481 <attribute default="${excludes}" name="excludes"/> 482 <attribute default="**" name="testincludes"/> 483 <attribute default="" name="testmethods"/> 484 <element implicit="true" name="customize" optional="true"/> 485 <sequential> 486 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 487 <customize/> 488 </j2seproject3:testng> 489 </sequential> 490 </macrodef> 491 </target> 492 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test"> 493 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3"> 494 <attribute default="${includes}" name="includes"/> 495 <attribute default="${excludes}" name="excludes"/> 496 <attribute default="**" name="testincludes"/> 497 <attribute default="" name="testmethods"/> 498 <sequential> 499 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 500 <customize> 501 <classpath> 502 <path path="${run.test.classpath}"/> 503 </classpath> 504 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 505 <jvmarg line="${run.jvmargs}"/> 506 <jvmarg line="${run.jvmargs.ide}"/> 507 </customize> 508 </j2seproject3:test-impl> 509 </sequential> 510 </macrodef> 511 </target> 512 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}"> 513 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 514 <attribute default="${includes}" name="includes"/> 515 <attribute default="${excludes}" name="excludes"/> 516 <attribute default="**" name="testincludes"/> 517 <attribute default="" name="testmethods"/> 518 <element name="customize" optional="true"/> 519 <sequential> 520 <property name="junit.forkmode" value="perTest"/> 521 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> 522 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 523 <syspropertyset> 524 <propertyref prefix="test-sys-prop."/> 525 <mapper from="test-sys-prop.*" to="*" type="glob"/> 526 </syspropertyset> 527 <formatter type="brief" usefile="false"/> 528 <formatter type="xml"/> 529 <jvmarg value="-ea"/> 530 <jvmarg line="${debug-args-line}"/> 531 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> 532 <customize/> 533 </junit> 534 </sequential> 535 </macrodef> 536 </target> 537 <target if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch"> 538 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 539 <attribute default="${includes}" name="includes"/> 540 <attribute default="${excludes}" name="excludes"/> 541 <attribute default="**" name="testincludes"/> 542 <attribute default="" name="testmethods"/> 543 <element name="customize" optional="true"/> 544 <sequential> 545 <property name="junit.forkmode" value="perTest"/> 546 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> 547 <batchtest todir="${build.test.results.dir}"> 548 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> 549 <filename name="@{testincludes}"/> 550 </fileset> 551 </batchtest> 552 <syspropertyset> 553 <propertyref prefix="test-sys-prop."/> 554 <mapper from="test-sys-prop.*" to="*" type="glob"/> 555 </syspropertyset> 556 <formatter type="brief" usefile="false"/> 557 <formatter type="xml"/> 558 <jvmarg value="-ea"/> 559 <jvmarg line="${debug-args-line}"/> 560 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> 561 <customize/> 562 </junit> 563 </sequential> 564 </macrodef> 565 </target> 566 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl"> 567 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 568 <attribute default="${includes}" name="includes"/> 569 <attribute default="${excludes}" name="excludes"/> 570 <attribute default="**" name="testincludes"/> 571 <attribute default="" name="testmethods"/> 572 <element implicit="true" name="customize" optional="true"/> 573 <sequential> 574 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 575 <customize/> 576 </j2seproject3:junit-debug> 577 </sequential> 578 </macrodef> 579 </target> 580 <target if="${testng.available}" name="-init-macrodef-testng-debug"> 581 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 582 <attribute default="${main.class}" name="testClass"/> 583 <attribute default="" name="testMethod"/> 584 <element name="customize2" optional="true"/> 585 <sequential> 586 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}"> 587 <isset property="test.method"/> 588 </condition> 589 <condition else="-suitename abcl -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}"> 590 <matches pattern=".*\.xml" string="@{testClass}"/> 591 </condition> 592 <delete dir="${build.test.results.dir}" quiet="true"/> 593 <mkdir dir="${build.test.results.dir}"/> 594 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}"> 595 <customize> 596 <customize2/> 597 <jvmarg value="-ea"/> 598 <arg line="${testng.debug.mode}"/> 599 <arg line="-d ${build.test.results.dir}"/> 600 <arg line="-listener org.testng.reporters.VerboseReporter"/> 601 <arg line="${testng.cmd.args}"/> 602 </customize> 603 </j2seproject3:debug> 604 </sequential> 605 </macrodef> 606 </target> 607 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl"> 608 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> 609 <attribute default="${main.class}" name="testClass"/> 610 <attribute default="" name="testMethod"/> 611 <element implicit="true" name="customize2" optional="true"/> 612 <sequential> 613 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}"> 614 <customize2/> 615 </j2seproject3:testng-debug> 616 </sequential> 617 </macrodef> 618 </target> 619 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit"> 620 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 621 <attribute default="${includes}" name="includes"/> 622 <attribute default="${excludes}" name="excludes"/> 623 <attribute default="**" name="testincludes"/> 624 <attribute default="" name="testmethods"/> 625 <attribute default="${main.class}" name="testClass"/> 626 <attribute default="" name="testMethod"/> 627 <sequential> 628 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> 629 <customize> 630 <classpath> 631 <path path="${run.test.classpath}"/> 632 </classpath> 633 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 634 <jvmarg line="${run.jvmargs}"/> 635 <jvmarg line="${run.jvmargs.ide}"/> 636 </customize> 637 </j2seproject3:test-debug-impl> 638 </sequential> 639 </macrodef> 640 </target> 641 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng"> 642 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> 643 <attribute default="${includes}" name="includes"/> 644 <attribute default="${excludes}" name="excludes"/> 645 <attribute default="**" name="testincludes"/> 646 <attribute default="" name="testmethods"/> 647 <attribute default="${main.class}" name="testClass"/> 648 <attribute default="" name="testMethod"/> 649 <sequential> 650 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}"> 651 <customize2> 652 <syspropertyset> 653 <propertyref prefix="test-sys-prop."/> 654 <mapper from="test-sys-prop.*" to="*" type="glob"/> 655 </syspropertyset> 656 </customize2> 657 </j2seproject3:testng-debug-impl> 658 </sequential> 659 </macrodef> 660 </target> 661 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/> 662 <!-- 663 pre NB7.2 profiling section; consider it deprecated 664 --> 665 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/> 666 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init"> 365 667 <!-- Empty placeholder for easier customization. --> 366 668 <!-- You can override this target in the ../build.xml file. --> 367 669 </target> 368 <target name="-profile-post-init">670 <target if="profiler.info.jvmargs.agent" name="-profile-post-init"> 369 671 <!-- Empty placeholder for easier customization. --> 370 672 <!-- You can override this target in the ../build.xml file. --> 371 673 </target> 372 <target name="-profile-init-macrodef-profile">674 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile"> 373 675 <macrodef name="resolve"> 374 676 <attribute name="name"/> … … 385 687 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> 386 688 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> 689 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 387 690 <jvmarg value="${profiler.info.jvmargs.agent}"/> 388 691 <jvmarg line="${profiler.info.jvmargs}"/> … … 401 704 </macrodef> 402 705 </target> 403 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">706 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check"> 404 707 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> 405 708 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> 406 709 </target> 710 <!-- 711 end of pre NB7.2 profiling section 712 --> 407 713 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> 408 714 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> … … 462 768 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> 463 769 <jvmarg line="${run.jvmargs}"/> 770 <jvmarg line="${run.jvmargs.ide}"/> 464 771 <classpath> 465 772 <path path="@{classpath}"/> … … 478 785 <attribute default="${main.class}" name="classname"/> 479 786 <attribute default="${run.classpath}" name="classpath"/> 787 <attribute default="jvm" name="jvm"/> 480 788 <element name="customize" optional="true"/> 481 789 <sequential> … … 485 793 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> 486 794 <jvmarg line="${run.jvmargs}"/> 795 <jvmarg line="${run.jvmargs.ide}"/> 487 796 <classpath> 488 797 <path path="@{classpath}"/> … … 511 820 <chainedmapper> 512 821 <flattenmapper/> 822 <filtermapper> 823 <replacestring from=" " to="%20"/> 824 </filtermapper> 513 825 <globmapper from="*" to="lib/*"/> 514 826 </chainedmapper> 515 827 </pathconvert> 516 828 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> 517 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" r untimeclasspath="${run.classpath.without.build.classes.dir}">829 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> 518 830 <fileset dir="${build.classes.dir}"/> 519 831 <manifest> … … 556 868 <property name="ap.cmd.line.internal" value=""/> 557 869 </target> 558 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef- junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>870 <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"/> 559 871 <!-- 560 872 =================== … … 772 1084 ================= 773 1085 --> 774 <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile"> 1086 <!-- 1087 pre NB7.2 profiler integration 1088 --> 1089 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72"> 1090 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 775 1091 <nbprofiledirect> 776 1092 <classpath> … … 780 1096 <profile/> 781 1097 </target> 782 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if=" netbeans.home" name="profile-single">1098 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72"> 783 1099 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> 1100 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 784 1101 <nbprofiledirect> 785 1102 <classpath> … … 789 1106 <profile classname="${profile.class}"/> 790 1107 </target> 791 <!-- 792 ========================= 793 APPLET PROFILING SECTION 794 ========================= 795 --> 796 <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet"> 1108 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72"> 1109 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 797 1110 <nbprofiledirect> 798 1111 <classpath> … … 806 1119 </profile> 807 1120 </target> 808 <!-- 809 ========================= 810 TESTS PROFILING SECTION 811 ========================= 812 --> 813 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single"> 1121 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72"> 1122 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> 814 1123 <nbprofiledirect> 815 1124 <classpath> … … 834 1143 </target> 835 1144 <!-- 1145 end of pre NB72 profiling section 1146 --> 1147 <target if="netbeans.home" name="-profile-check"> 1148 <condition property="profiler.configured"> 1149 <or> 1150 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/> 1151 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/> 1152 </or> 1153 </condition> 1154 </target> 1155 <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent"> 1156 <startprofiler/> 1157 <antcall target="run"/> 1158 </target> 1159 <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"> 1160 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1161 <startprofiler/> 1162 <antcall target="run-single"/> 1163 </target> 1164 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/> 1165 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs"> 1166 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> 1167 <startprofiler/> 1168 <antcall target="test-single"/> 1169 </target> 1170 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main"> 1171 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1172 <startprofiler/> 1173 <antcal target="run-test-with-main"/> 1174 </target> 1175 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> 1176 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> 1177 <startprofiler/> 1178 <antcall target="run-applet"/> 1179 </target> 1180 <!-- 836 1181 =============== 837 1182 JAVADOC SECTION … … 840 1185 <target depends="init" if="have.sources" name="-javadoc-build"> 841 1186 <mkdir dir="${dist.javadoc.dir}"/> 1187 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}"> 1188 <and> 1189 <isset property="endorsed.classpath.cmd.line.arg"/> 1190 <not> 1191 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/> 1192 </not> 1193 </and> 1194 </condition> 842 1195 <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> 843 1196 <classpath> … … 851 1204 <exclude name="*.java"/> 852 1205 </fileset> 1206 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/> 853 1207 </javadoc> 854 1208 <copy todir="${dist.javadoc.dir}"> … … 867 1221 <!-- 868 1222 ========================= 869 JUNIT COMPILATION SECTION1223 TEST COMPILATION SECTION 870 1224 ========================= 871 1225 --> … … 910 1264 <!-- 911 1265 ======================= 912 JUNIT EXECUTION SECTION1266 TEST EXECUTION SECTION 913 1267 ======================= 914 1268 --> … … 917 1271 </target> 918 1272 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> 919 <j2seproject3: junit testincludes="**/*Test.java"/>1273 <j2seproject3:test testincludes="**/*Test.java"/> 920 1274 </target> 921 1275 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> … … 930 1284 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> 931 1285 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> 932 <j2seproject3: junit excludes=""includes="${test.includes}"/>1286 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/> 933 1287 </target> 934 1288 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> … … 936 1290 </target> 937 1291 <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"/> 1292 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method"> 1293 <fail unless="test.class">Must select some files in the IDE or set test.class</fail> 1294 <fail unless="test.method">Must select some method in the IDE or set test.method</fail> 1295 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/> 1296 </target> 1297 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method"> 1298 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> 1299 </target> 1300 <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"/> 938 1301 <!-- 939 1302 ======================= 940 JUNIT DEBUGGING SECTION1303 TEST DEBUGGING SECTION 941 1304 ======================= 942 1305 --> 943 <target depends="init,compile-test " if="have.tests" name="-debug-start-debuggee-test">1306 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test"> 944 1307 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> 945 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> 946 <delete file="${test.report.file}"/> 947 <mkdir dir="${build.test.results.dir}"/> 948 <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}"> 949 <customize> 950 <syspropertyset> 951 <propertyref prefix="test-sys-prop."/> 952 <mapper from="test-sys-prop.*" to="*" type="glob"/> 953 </syspropertyset> 954 <arg value="${test.class}"/> 955 <arg value="showoutput=true"/> 956 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> 957 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> 958 </customize> 959 </j2seproject3:debug> 1308 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/> 1309 </target> 1310 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method"> 1311 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> 1312 <fail unless="test.method">Must select some method in the IDE or set test.method</fail> 1313 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/> 960 1314 </target> 961 1315 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> … … 963 1317 </target> 964 1318 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> 1319 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/> 965 1320 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> 966 1321 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> … … 1027 1382 <property file="${call.built.properties}" prefix="already.built."/> 1028 1383 <condition property="should.call.dep"> 1029 <not> 1030 <isset property="already.built.${call.subproject}"/> 1031 </not> 1384 <and> 1385 <not> 1386 <isset property="already.built.${call.subproject}"/> 1387 </not> 1388 <available file="${call.script}"/> 1389 </and> 1032 1390 </condition> 1033 1391 </target> -
trunk/abcl/nbproject/genfiles.properties
r13697 r14217 5 5 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 6 nbproject/build-impl.xml.data.CRC32=742204ce 7 nbproject/build-impl.xml.script.CRC32= 363614508 nbproject/build-impl.xml.stylesheet.CRC32= 0ae3a408@1.44.1.457 nbproject/build-impl.xml.script.CRC32=1dc32654 8 nbproject/build-impl.xml.stylesheet.CRC32=6ddba6b6@1.53.1.46 9 9 nbproject/profiler-build-impl.xml.data.CRC32=71623fcd 10 10 nbproject/profiler-build-impl.xml.script.CRC32=abda56ed
Note: See TracChangeset
for help on using the changeset viewer.