DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21345>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21345 javacc task to support javacc 3.x Summary: javacc task to support javacc 3.x Product: Ant Version: 1.5.3 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've noticed that latest \src\main\org\apache\tools\ant\taskdefs\optional\javacc\JavaCC.java has been modified to work with javacc 3.x and 2.x For 3.x you are using org.netbeans.javacc. package. I've been using javacc 3.1 from the new official home page of javacc (http://experimentalstuff.com/Technologies/JavaCC/) There is no org.netbeans.javacc package in there. Main class in that distribution is org.javacc.parser.Main I wrote my own modification of the JavaCC.java that does the lookup like this: protected File getArchiveFile(File home) throws BuildException { if (home == null || !home.isDirectory()) { throw new BuildException("JavaCC home must be a valid directory."); } // javacc install 3.0+ File f = new File(home, "javacc.jar"); if (f.exists()){ cmdl.setClassname("org.javacc.parser.Main"); return f; } // javacc install 3.0+ f = new File(home, "bin/lib/javacc.jar"); if (f.exists()){ cmdl.setClassname("org.javacc.parser.Main"); return f; } // javacc prior to 2.0 f = new File(home, "JavaCC.zip"); if (f.exists()){ cmdl.setClassname("COM.sun.labs.javacc.Main"); return f; } // javacc install 2.0+ f = new File(home, "bin/lib/JavaCC.zip"); if (f.exists()){ cmdl.setClassname("COM.sun.labs.javacc.Main"); return f; } The same should be for JJTree and JJDoc Please include support for this package as well. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]