dcsimg
Using the optional JavaCC task.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   James_Lippingwell
Posted On:   Thursday, September 6, 2001 09:10 AM

Has anyone been able to use the optional JavaCC task? I can't get it to find the COM/sun/labs/javacc/Main class unless I already have JavaCC.zip in my classpath before running Ant. I want my build to work without needing classpath changes before hand though, but the JavaCC task has no classpath attribute (and javacchome seems useless).


I can use the Java task to run the JavaCC class (since the Java task has a classpath attribute), but then it rebuilds the files everytime (no check to see if they need to be rebuil, as with the JavaCC task).


Any help would be appreciated, thanks.


James

Re: Using the optional JavaCC task.

Posted By:   Erik_Hatcher  
Posted On:   Thursday, September 6, 2001 07:41 PM

If you put JavaCC.zip in your ANT_HOME/lib directory, perhaps renaming to JavaCC.jar you will likely be able to run it without an explicit classpath. Ant's wrapper scripts (ant.bat, ant.sh, etc) actually build a classpath with all the JAR files from the lib directory automatically.

Re: Using the optional JavaCC task.

Posted By:   James_Lippingwell  
Posted On:   Thursday, September 6, 2001 11:30 AM

Nevermind. JavaCC.zip had been renamed here to include a version number (so it wasn't finding it).
About | Sitemap | Contact