# HG changeset patch # User Jaroslav Tulach # Date 1213429969 -7200 # Node ID 5a0b7b1f8f11632eb385c3e66309ffc0650c9e05 # Parent 45b0d58e66ca60d49a0f81ff6f5df3209520154b Making jtulach's projects compilable diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day1/alwayscreatenewcircuit/build.xml --- a/samples/apifest1/day1/alwayscreatenewcircuit/build.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day1/alwayscreatenewcircuit/build.xml Sat Jun 14 09:52:49 2008 +0200 @@ -2,8 +2,8 @@ - - Builds, tests, and runs the project alwayscreatenewcircuit. + + Builds, tests, and runs the project alwayscreatenewcircuit - day1. - + - - Builds, tests, and runs the project alwayscreatenewcircuit. + + Builds, tests, and runs the project alwayscreatenewcircuit - day2. - + - - + --> + + + ====================== + INITIALIZATION SECTION + ====================== + --> - + + + - + - + + - + @@ -77,7 +80,10 @@ - + + + + @@ -90,12 +96,34 @@ + + + + + + + + + + + + + + + + + + + + + + - + Must set src.dir Must set test.src.dir Must set build.dir @@ -118,41 +146,70 @@ - - - - + + + + + + + - + + + + + + + + + + + + + + + - - - - - - - + + + + + + Must set javac.includes + + + + + + + + + - + + + - + - + + + - + @@ -163,11 +220,11 @@ - - - + + + - + @@ -175,24 +232,36 @@ - + - + - + + + + + + + + + + + + + + + - - + + - - - - + + @@ -200,7 +269,7 @@ - + @@ -209,17 +278,17 @@ - + - + - + @@ -228,102 +297,102 @@ - + - + - - + =================== + COMPILATION SECTION + =================== + --> + + - + + + + - + - + - + Must select some files in the IDE or set javac.includes - - - - - + + - + - - + ==================== + JAR BUILDING SECTION + ==================== + --> + + - + - + - + To run this application from the command line without Ant, try: - - + + java -cp "${run.classpath.with.dist.jar}" ${main.class} - - + + - + - - + + @@ -331,183 +400,194 @@ To run this application from the command line without Ant, try: - + java -jar "${dist.jar.resolved}" - + - + ================= + EXECUTION SECTION + ================= + --> + - + + + + Must select one file in the IDE or set run.class - + ================= + DEBUGGING SECTION + ================= + --> + - + - - + + - - + + Must select one file in the IDE or set debug.class - - + + Must set fix.includes - + - + - + =============== + JAVADOC SECTION + =============== + --> + - + - - - - - + + + - + - + - + ========================= + JUNIT COMPILATION SECTION + ========================= + --> + - - + + + + + - + - + - + Must select some files in the IDE or set javac.includes - - - - - + + - + - + - + ======================= + JUNIT EXECUTION SECTION + ======================= + --> + - - + + - + Some tests failed; see details above. - - - - + + + + - + Must select some files in the IDE or set test.includes - + - + Some tests failed; see details above. - + - + ======================= + JUNIT DEBUGGING SECTION + ======================= + --> + Must select one file in the IDE or set test.class - + + + + - + + + + + + + + - - + + - - + + - + - + ========================= + APPLET EXECUTION SECTION + ========================= + --> + Must select one file in the IDE or set applet.url @@ -516,11 +596,11 @@ - + ========================= + APPLET DEBUGGING SECTION + ========================= + --> + Must select one file in the IDE or set applet.url @@ -528,14 +608,14 @@ - + - - + =============== + CLEANUP SECTION + =============== + --> + + @@ -543,5 +623,5 @@ - + diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/inputandoperation/nbproject/genfiles.properties --- a/samples/apifest1/day2/inputandoperation/nbproject/genfiles.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/inputandoperation/nbproject/genfiles.properties Sat Jun 14 09:52:49 2008 +0200 @@ -1,5 +1,5 @@ # 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=835ca895 -nbproject/build-impl.xml.script.CRC32=7f83eb6b -nbproject/build-impl.xml.stylesheet.CRC32=c10f1eac +nbproject/build-impl.xml.script.CRC32=d896881b +nbproject/build-impl.xml.stylesheet.CRC32=f1d9da08 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/inputandoperation/nbproject/project.properties --- a/samples/apifest1/day2/inputandoperation/nbproject/project.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/inputandoperation/nbproject/project.properties Sat Jun 14 09:52:49 2008 +0200 @@ -15,6 +15,8 @@ dist.dir=dist dist.jar=${dist.dir}/boolcircuit.jar dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** jar.compress=false javac.classpath= # Space-separated list of extra javac options diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/inputandoperation/nbproject/project.xml --- a/samples/apifest1/day2/inputandoperation/nbproject/project.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/inputandoperation/nbproject/project.xml Sat Jun 14 09:52:49 2008 +0200 @@ -3,7 +3,7 @@ org.netbeans.modules.java.j2seproject - inputandoperation + inputandoperation - day2 1.6.5 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/inputandoperation/src/org/netbeans/apifest/boolcircuit/Circuit.java --- a/samples/apifest1/day2/inputandoperation/src/org/netbeans/apifest/boolcircuit/Circuit.java Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/inputandoperation/src/org/netbeans/apifest/boolcircuit/Circuit.java Sat Jun 14 09:52:49 2008 +0200 @@ -26,8 +26,10 @@ public static boolean evaluateBooleanOperation(Operation op) { return op.performBooleanOperation(); } - + + // BEGIN: apifest.day2.inputandoperation.addedmethod public static double evaluateRealOperation(Operation op) { return op.performRealOperation(); } + // END: apifest.day2.inputandoperation.addedmethod } diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/pinbasedsolution/nbproject/build-impl.xml --- a/samples/apifest1/day2/pinbasedsolution/nbproject/build-impl.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/pinbasedsolution/nbproject/build-impl.xml Sat Jun 14 09:52:49 2008 +0200 @@ -18,32 +18,35 @@ - applet - cleanup ---> - - + --> + + + ====================== + INITIALIZATION SECTION + ====================== + --> - + + + - + - + + - + @@ -77,7 +80,10 @@ - + + + + @@ -90,12 +96,34 @@ + + + + + + + + + + + + + + + + + + + + + + - + Must set src.dir Must set test.src.dir Must set build.dir @@ -118,41 +146,70 @@ - - - - + + + + + + + - + + + + + + + + + + + + + + + - - - - - - - + + + + + + Must set javac.includes + + + + + + + + + - + + + - + - + + + - + @@ -163,11 +220,11 @@ - - - + + + - + @@ -175,24 +232,36 @@ - + - + - + + + + + + + + + + + + + + + - - + + - - - - + + @@ -200,7 +269,7 @@ - + @@ -209,17 +278,17 @@ - + - + - + @@ -228,102 +297,102 @@ - + - + - - + =================== + COMPILATION SECTION + =================== + --> + + - + + + + - + - + - + Must select some files in the IDE or set javac.includes - - - - - + + - + - - + ==================== + JAR BUILDING SECTION + ==================== + --> + + - + - + - + To run this application from the command line without Ant, try: - - + + java -cp "${run.classpath.with.dist.jar}" ${main.class} - - + + - + - - + + @@ -331,183 +400,194 @@ To run this application from the command line without Ant, try: - + java -jar "${dist.jar.resolved}" - + - + ================= + EXECUTION SECTION + ================= + --> + - + + + + Must select one file in the IDE or set run.class - + ================= + DEBUGGING SECTION + ================= + --> + - + - - + + - - + + Must select one file in the IDE or set debug.class - - + + Must set fix.includes - + - + - + =============== + JAVADOC SECTION + =============== + --> + - + - - - - - + + + - + - + - + ========================= + JUNIT COMPILATION SECTION + ========================= + --> + - - + + + + + - + - + - + Must select some files in the IDE or set javac.includes - - - - - + + - + - + - + ======================= + JUNIT EXECUTION SECTION + ======================= + --> + - - + + - + Some tests failed; see details above. - - - - + + + + - + Must select some files in the IDE or set test.includes - + - + Some tests failed; see details above. - + - + ======================= + JUNIT DEBUGGING SECTION + ======================= + --> + Must select one file in the IDE or set test.class - + + + + - + + + + + + + + - - + + - - + + - + - + ========================= + APPLET EXECUTION SECTION + ========================= + --> + Must select one file in the IDE or set applet.url @@ -516,11 +596,11 @@ - + ========================= + APPLET DEBUGGING SECTION + ========================= + --> + Must select one file in the IDE or set applet.url @@ -528,14 +608,14 @@ - + - - + =============== + CLEANUP SECTION + =============== + --> + + @@ -543,5 +623,5 @@ - + diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/pinbasedsolution/nbproject/genfiles.properties --- a/samples/apifest1/day2/pinbasedsolution/nbproject/genfiles.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/pinbasedsolution/nbproject/genfiles.properties Sat Jun 14 09:52:49 2008 +0200 @@ -1,8 +1,8 @@ build.xml.data.CRC32=c2d9be31 build.xml.script.CRC32=09dc18c1 -build.xml.stylesheet.CRC32=a12b3d02 +build.xml.stylesheet.CRC32=be360661 # 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=c2d9be31 -nbproject/build-impl.xml.script.CRC32=716bfc49 -nbproject/build-impl.xml.stylesheet.CRC32=c10f1eac +nbproject/build-impl.xml.script.CRC32=c591e2ef +nbproject/build-impl.xml.stylesheet.CRC32=f1d9da08 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/pinbasedsolution/nbproject/project.properties --- a/samples/apifest1/day2/pinbasedsolution/nbproject/project.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/pinbasedsolution/nbproject/project.properties Sat Jun 14 09:52:49 2008 +0200 @@ -15,6 +15,8 @@ dist.dir=dist dist.jar=${dist.dir}/boolcircuit.jar dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** jar.compress=false javac.classpath= # Space-separated list of extra javac options diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/pinbasedsolution/nbproject/project.xml --- a/samples/apifest1/day2/pinbasedsolution/nbproject/project.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/pinbasedsolution/nbproject/project.xml Sat Jun 14 09:52:49 2008 +0200 @@ -3,7 +3,7 @@ org.netbeans.modules.java.j2seproject - pinbasedsolution + pinbasedsolution - day2 1.6.5 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day2/stackbasedsolution/build.xml --- a/samples/apifest1/day2/stackbasedsolution/build.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day2/stackbasedsolution/build.xml Sat Jun 14 09:52:49 2008 +0200 @@ -2,8 +2,8 @@ - - Builds, tests, and runs the project stackbasedsolution. + + Builds, tests, and runs the project stackbasedsolution - day2. - + - + - testing-template + testing template build.xml project.properties @@ -54,6 +54,9 @@ ${ant.script} + + project.properties + @@ -68,7 +71,7 @@ test - ${apiA}:${apifest}/lib/junit-3.8.2.jar + ${apiA}:${junit.jar} build/tests 1.5 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-pinbasedsolution/project.properties --- a/samples/apifest1/day3-intermezzo/jtulach/against-pinbasedsolution/project.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-pinbasedsolution/project.properties Sat Jun 14 09:52:49 2008 +0200 @@ -1,9 +1,11 @@ # location to root of the repository with apifest projects apifest=../../.. +# and where is junit? +junit.jar=../../../../libs/dist/junit-4.4.jar # name of a project to test -apitotest=pinbasedsolution +apitotest=todo:specify_this_property_in:project.properties # the test shall expose a problem between two versions # of one API. select the first version - dayA and a second diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/build.xml --- a/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/build.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/build.xml Sat Jun 14 09:52:49 2008 +0200 @@ -12,10 +12,11 @@ + - + @@ -33,7 +34,9 @@ - + + + @@ -41,13 +44,14 @@ - + - + + @@ -55,7 +59,7 @@ - + @@ -73,10 +77,13 @@ - + + + + - + diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/nbproject/project.xml --- a/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/nbproject/project.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/nbproject/project.xml Sat Jun 14 09:52:49 2008 +0200 @@ -54,6 +54,9 @@ ${ant.script} + + project.properties + @@ -68,7 +71,7 @@ test - ${apiA}:${apifest}/lib/junit-3.8.2.jar + ${apiA}:${junit.jar} build/tests 1.5 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/project.properties --- a/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/project.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/project.properties Sat Jun 14 09:52:49 2008 +0200 @@ -1,6 +1,8 @@ # location to root of the repository with apifest projects apifest=../../.. +# and where is junit? +junit.jar=../../../../libs/dist/junit-4.4.jar # name of a project to test apitotest=stackbasedsolution diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/test/apifest/CircuitTest.java --- a/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/test/apifest/CircuitTest.java Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-stackbasedsolution/test/apifest/CircuitTest.java Sat Jun 14 09:52:49 2008 +0200 @@ -47,6 +47,7 @@ /** Write a test that works with version from day A and fails with version B. */ +// BEGIN: apifest.day3.against-stackbasedsolution.CircuitTest public class CircuitTest extends TestCase { public CircuitTest(String n) { super(n); @@ -56,3 +57,4 @@ Circuit c = CircuitFactory.getBasicCircuit(null); } } +// END: apifest.day3.against-stackbasedsolution.CircuitTest diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/build.xml --- a/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/build.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/build.xml Sat Jun 14 09:52:49 2008 +0200 @@ -12,10 +12,11 @@ + - + @@ -33,7 +34,9 @@ - + + + @@ -41,13 +44,14 @@ - + - + + @@ -55,7 +59,7 @@ - + @@ -73,10 +77,13 @@ - + + + + - + diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/nbproject/project.xml --- a/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/nbproject/project.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/nbproject/project.xml Sat Jun 14 09:52:49 2008 +0200 @@ -54,6 +54,9 @@ ${ant.script} + + project.properties + @@ -68,7 +71,7 @@ test - ${apiA}:${apifest}/lib/junit-3.8.2.jar + ${apiA}:${junit.jar} build/tests 1.5 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/project.properties --- a/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/project.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/project.properties Sat Jun 14 09:52:49 2008 +0200 @@ -1,6 +1,8 @@ # location to root of the repository with apifest projects apifest=../../.. +# and where is junit? +junit.jar=../../../../libs/dist/junit-4.4.jar # name of a project to test apitotest=subclassingsolution diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/test/apifest/CircuitTest.java --- a/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/test/apifest/CircuitTest.java Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-subclassingsolution/test/apifest/CircuitTest.java Sat Jun 14 09:52:49 2008 +0200 @@ -46,6 +46,7 @@ /** Write a test that works with version from day A and fails with version B. */ +// BEGIN: apifest.day3.against-subclassingsolution.CircuitTest public class CircuitTest extends TestCase { public CircuitTest(String n) { super(n); @@ -55,3 +56,4 @@ Circuit c = Circuit.AND; } } +// END: apifest.day3.against-subclassingsolution.CircuitTest diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/build.xml --- a/samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/build.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/build.xml Sat Jun 14 09:52:49 2008 +0200 @@ -12,10 +12,11 @@ + - + @@ -33,7 +34,9 @@ - + + + @@ -41,13 +44,14 @@ - + - + + @@ -55,7 +59,7 @@ - + @@ -73,10 +77,13 @@ - + + + + - + diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/nbproject/project.xml --- a/samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/nbproject/project.xml Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/nbproject/project.xml Sat Jun 14 09:52:49 2008 +0200 @@ -4,7 +4,7 @@ - Against Well Tested Solution + Against Subclassing Solution build.xml project.properties @@ -54,6 +54,9 @@ ${ant.script} + + project.properties + @@ -68,7 +71,7 @@ test - ${apiA}:${apifest}/lib/junit-3.8.2.jar + ${apiA}:${junit.jar} build/tests 1.5 diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/project.properties --- a/samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/project.properties Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/jtulach/against-welltestedsolution/project.properties Sat Jun 14 09:52:49 2008 +0200 @@ -1,6 +1,8 @@ # location to root of the repository with apifest projects apifest=../../.. +# and where is junit? +junit.jar=../../../../libs/dist/junit-4.4.jar # name of a project to test apitotest=welltestedsolution diff -r 45b0d58e66ca -r 5a0b7b1f8f11 samples/apifest1/day3-intermezzo/pnejedly/against-inputandoperation/test/apifest/CircuitTest.java --- a/samples/apifest1/day3-intermezzo/pnejedly/against-inputandoperation/test/apifest/CircuitTest.java Sat Jun 14 09:52:48 2008 +0200 +++ b/samples/apifest1/day3-intermezzo/pnejedly/against-inputandoperation/test/apifest/CircuitTest.java Sat Jun 14 09:52:49 2008 +0200 @@ -46,6 +46,7 @@ /** Write a test that works with version from day A and fails with version B. */ +// BEGIN: apifest.day3.against-inputandoperation.CircuitTest public class CircuitTest extends TestCase { public CircuitTest(String n) { super(n); @@ -55,10 +56,10 @@ } // One forgotten final and the dissaster is here. - // Of course Circuit has to be public, but it has to be anyway to be usable class MyCircuit extends Circuit { public double evaluateRealOperation(Operation op) { return 0; } } } +// END: apifest.day3.against-inputandoperation.CircuitTest