# HG changeset patch # User Jaroslav Tulach # Date 1344461159 -7200 # Node ID b87fd959548bfd6c45641c4e14840ca0d200ba57 # Parent 507c2dd1e61df3424f82d1cdee4b7e039b2c57c0 Andrei was confused by CountDownV1: replacing by call to method createSimpleImplementation which should be more intent describing diff -r 507c2dd1e61d -r b87fd959548b samples/codeinjection/nbproject/build-impl.xml --- a/samples/codeinjection/nbproject/build-impl.xml Wed Aug 08 23:15:30 2012 +0200 +++ b/samples/codeinjection/nbproject/build-impl.xml Wed Aug 08 23:25:59 2012 +0200 @@ -12,14 +12,21 @@ - execution - debugging - javadoc - - junit compilation - - junit execution - - junit debugging + - test compilation + - test execution + - test debugging - applet - cleanup --> + + + + + + + @@ -144,26 +248,79 @@ - + + + - + + - + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -180,44 +337,379 @@ Must set javac.includes - + + + - + + + + - + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + @@ -269,9 +761,13 @@ + + + + @@ -288,10 +784,15 @@ + + + + + @@ -304,20 +805,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + @@ -333,14 +904,25 @@ - + + + + + + - - + + + + + + + + @@ -353,7 +935,7 @@ Must select some files in the IDE or set javac.includes - + @@ -373,52 +955,60 @@ - + - + - + - To run this application from the command line without Ant, try: + To run this application from the command line without Ant, try: - java -cp "${run.classpath.with.dist.jar}" ${main.class} + java -cp "${run.classpath.with.dist.jar}" ${main.class} - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: - java -jar "${dist.jar.resolved}" + java -jar "${dist.jar.resolved}" + + + + + + @@ -439,11 +1029,11 @@ - + Must select one file in the IDE or set run.class - + Must select one file in the IDE or set run.class @@ -474,12 +1064,12 @@ Must select one file in the IDE or set debug.class - + Must select one file in the IDE or set debug.class - + Must set fix.includes @@ -489,20 +1079,140 @@ + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + - + + + + + + + + + - + + + + + + + + + + + + + + @@ -510,7 +1220,7 @@ @@ -523,8 +1233,8 @@ - - + + @@ -538,10 +1248,10 @@ - + Must select some files in the IDE or set javac.includes - + @@ -553,17 +1263,17 @@ - + - Some tests failed; see details above. + Some tests failed; see details above. @@ -573,39 +1283,40 @@ Must select some files in the IDE or set test.includes - + - Some tests failed; see details above. + Some tests failed; see details above. - + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + - + Must select one file in the IDE or set test.class - - - - - - - - - - - - - - - + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + - + + @@ -642,14 +1353,48 @@ CLEANUP SECTION =============== --> - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + diff -r 507c2dd1e61d -r b87fd959548b samples/codeinjection/nbproject/genfiles.properties --- a/samples/codeinjection/nbproject/genfiles.properties Wed Aug 08 23:15:30 2012 +0200 +++ b/samples/codeinjection/nbproject/genfiles.properties Wed Aug 08 23:25:59 2012 +0200 @@ -1,8 +1,8 @@ build.xml.data.CRC32=4a8b5abf build.xml.script.CRC32=83b773e3 -build.xml.stylesheet.CRC32=958a1d3e +build.xml.stylesheet.CRC32=28e38971@1.54.0.46 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=4a8b5abf -nbproject/build-impl.xml.script.CRC32=87b63499 -nbproject/build-impl.xml.stylesheet.CRC32=18b47a54 +nbproject/build-impl.xml.script.CRC32=6a821ef7 +nbproject/build-impl.xml.stylesheet.CRC32=6ddba6b6@1.54.0.46 diff -r 507c2dd1e61d -r b87fd959548b samples/codeinjection/nbproject/project.properties --- a/samples/codeinjection/nbproject/project.properties Wed Aug 08 23:15:30 2012 +0200 +++ b/samples/codeinjection/nbproject/project.properties Wed Aug 08 23:25:59 2012 +0200 @@ -3,6 +3,7 @@ # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes diff -r 507c2dd1e61d -r b87fd959548b samples/codeinjection/src/org/apidesign/codeinjection/CountDown.java --- a/samples/codeinjection/src/org/apidesign/codeinjection/CountDown.java Wed Aug 08 23:15:30 2012 +0200 +++ b/samples/codeinjection/src/org/apidesign/codeinjection/CountDown.java Wed Aug 08 23:25:59 2012 +0200 @@ -16,12 +16,16 @@ } public static CountDown create(int initial) { - return new CountDownImplV1(initial); + return createSimpleImplementation(initial); } /** Decrements the counter */ public abstract void down(); /** @return true if the counter is 0 or less */ public abstract boolean isDown(); +// FINISH: codeinjection.CountDown + + private static CountDown createSimpleImplementation(int initial) { + return new CountDownImplV1(initial); + } } -// END: codeinjection.CountDown