From: Adam B. <ab...@o2...> - 2011-09-08 12:48:06
|
My gaming friends enjoyed Reload option which is present in 1.4.2. Yet we had to turn back to 1.4.1 as 1.4.2 failed in 1830+PM with the additional 6T (an exception when buying the 6T train). So I considered making a JAR and using it locally until an official release is made. Adam Badura -----Oryginalna wiadomość----- From: Stefan Frey Sent: Thursday, September 08, 2011 2:45 PM To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Making JAR Adam: the ant build file has not changed to add the new Junit 4.8.2 library into the classpath. I fixed that and committed that to the repo. It might have been the issue that prevented Brett to finish the release. Still: For which reasons do you need a JAR? For development I build and test from Eclipse. Stefan On Wednesday, September 07, 2011 11:41:15 pm Adam Badura wrote: > Finally I reconfigured to use GIT. I have uninstalled Java and its updates > and downloaded a new one. Same with Eclipse. I have removed previous > workspace and started a new one. And it did download correctly, builds and > runs fine. > > Now how to make a JAR? I tried to follow the Wiki but while building > build.xml I got some errors regarding testing framework: > > > Buildfile: C:\Users\Adam Badura\git\rails\build.xml > build-subprojects: > clean: > [delete] Deleting directory C:\Users\Adam Badura\git\rails\classes > init: > [mkdir] Created dir: C:\Users\Adam Badura\git\rails\classes > [copy] Copying 861 files to C:\Users\Adam Badura\git\rails\classes > build-project: > [echo] 18xx: C:\Users\Adam Badura\git\rails\build.xml > [javac] C:\Users\Adam Badura\git\rails\build.xml:53: warning: > 'includeantruntime' was not set, defaulting to build.sysclasspath=last; > set to false for repeatable builds [javac] Compiling 317 source files to > C:\Users\Adam Badura\git\rails\classes [javac] warning: [options] > bootstrap class path not set in conjunction with -source 1.5 [javac] > C:\Users\Adam Badura\git\rails\test\TestGame.java:16: error: package > junit.framework does not exist [javac] import junit.framework.TestCase; > [javac] ^ > [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:18: error: > cannot find symbol [javac] public class TestGame extends TestCase { > [javac] ^ > [javac] symbol: class TestCase > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:16: > error: package junit.framework does not exist [javac] import > junit.framework.Test; > [javac] ^ > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:17: > error: package junit.framework does not exist [javac] import > junit.framework.TestCase; > [javac] ^ > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:18: > error: package junit.framework does not exist [javac] import > junit.framework.TestSuite; > [javac] ^ > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:25: > error: cannot find symbol [javac] public final class TestGameBuilder > extends TestCase { > [javac] ^ > [javac] symbol: class TestCase > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:98: > error: cannot find symbol [javac] private static TestSuite > recursiveTestSuite(String rootPath, String dirPath, int level, boolean > overrideReport){ [javac] ^ > [javac] symbol: class TestSuite > [javac] location: class TestGameBuilder > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:158: > error: cannot find symbol [javac] public static Test suite() { > [javac] ^ > [javac] symbol: class Test > [javac] location: class TestGameBuilder > [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:55: error: > cannot find symbol [javac] fail("Test report exceeeds > expected report." + [javac] ^ > [javac] symbol: method fail(String) > [javac] location: class TestGame > [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:60: error: > cannot find symbol [javac] fail("Expected report > exceeds test report." + [javac] ^ > [javac] symbol: method fail(String) > [javac] location: class TestGame > [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:67: error: > cannot find symbol [javac] assertEquals("Reports differ in > line " + (line+1), [javac] ^ > [javac] symbol: method assertEquals(String,String,String) > [javac] location: class TestGame > [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:75: error: > cannot find symbol [javac] super.setUp(); > [javac] ^ > [javac] symbol: variable super > [javac] location: class TestGame > [javac] C:\Users\Adam Badura\git\rails\test\TestGame.java:123: error: > cannot find symbol [javac] super.tearDown(); > [javac] ^ > [javac] symbol: variable super > [javac] location: class TestGame > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:110: > error: cannot find symbol [javac] TestSuite suite; > [javac] ^ > [javac] symbol: class TestSuite > [javac] location: class TestGameBuilder > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:113: > error: cannot find symbol [javac] suite = new TestSuite("Rails > Tests"); > [javac] ^ > [javac] symbol: class TestSuite > [javac] location: class TestGameBuilder > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:115: > error: cannot find symbol [javac] suite = new > TestSuite(directory.getName()); [javac] ^ > [javac] symbol: class TestSuite > [javac] location: class TestGameBuilder > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:130: > error: cannot find symbol [javac] TestSuite newSuite = > recursiveTestSuite(rootPath, nextDirPath, level+1, overrideReport); > [javac] ^ > [javac] symbol: class TestSuite > [javac] location: class TestGameBuilder > [javac] C:\Users\Adam Badura\git\rails\test\TestGameBuilder.java:166: > error: cannot find symbol [javac] TestSuite suite = null; > [javac] ^ > [javac] symbol: class TestSuite > [javac] location: class TestGameBuilder > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 18 errors > [javac] 1 warning > > BUILD FAILED > C:\Users\Adam Badura\git\rails\build.xml:53: Compile failed; see the > compiler error output for details. > > Total time: 10 seconds > > > > Also the bash script given on the Wiki page is of little use to a Windows > user... ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |