|
From: SourceForge.net <no...@so...> - 2010-03-08 17:43:42
|
Feature Requests item #2965548, was opened at 2010-03-08 11:43 Message generated for change (Tracker Item Submitted) made by mgricken You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438938&aid=2965548&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Other Group: None Status: Open Priority: 5 Private: No Submitted By: Mathias Ricken (mgricken) Assigned to: Nobody/Anonymous (nobody) Summary: Command Line Interface for Language Level Converter Initial Comment: There is a command line version of the language level converter that can be invoked using java -cp drjava.jar edu.rice.cs.javalanglevels.LanguageLevelConverter MyFile.dj1 MyOtherFile.dj1 but it seems to have trouble with the classpath. It should be made very easy to use the command line interface. Perhaps the best thing would be to integrate the interface into DrJava so it can be invoked using java -jar drjava.jar -jll MyFile.dj1 MyOtherFile.dj1 ---- Here is an example of the current class path problem: import junit.framework.*; public class TestGCDLL extends TestCase { public int gcd(int x, int y) { if(y == 0) { return x; } else { return gcd(y, x%y); } } public void testGCD() { assertEquals(3, gcd(6,9)); } } % java -cp /Applications/Dev/drjava.jar edu.rice.cs.javalanglevels.LanguageLevelConverter TestGCDLL.dj1 1 errors. Converter could not resolve TestCase [TestGCDLL.dj1: (3,32)-(3,39)] Even though junit.framework.TestCase is included in drjava.jar. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438938&aid=2965548&group_id=44253 |