Could we not upgrade HiveMind to use the newer version of JavaCC instead of adding that complexity? Isn't JavaCC backwards compatible?
-----Original Message----- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 6:05 AM To: [email protected] Subject: Trying to build Hivemind in Gump Hi, I'm in the process of "gumping"[1] Hivemind in order to build Tapestry later. My current biggest obstacle is JavaCC. Hivebuild wants to download and use a rather old version of JavaCC (1.x or 2.x, dunno) and Gump uses the 3.1 version from java.net[2]. While Ant deals with all JavaCC versions happily, I'd have to point the <javacc> task to a different javacchome. Unfortunately javacchome is coupled to external.package.dir in hivebuild and I'd also send hivebuild download all other stuff into my local JavaCC installation if I changed it. The appended patch will retain all current functionality but will also allow me to override the JavaCC version with a property. Please consider applying the path. The alternative would be to rewrite the Ant task so it uses its classpath instead of the filename to determine which JavaCC version it is dealing with. Cheers Stefan Footnotes: [1] http://gump.apache.org/ [2] https://javacc.dev.java.net/ Index: hivebuild/javacc.properties =================================================================== RCS file: /home/cvspublic/jakarta-hivemind/hivebuild/javacc.properties,v retrieving revision 1.1 diff -u -r1.1 javacc.properties --- hivebuild/javacc.properties 11 Jul 2004 17:14:43 -0000 1.1 +++ hivebuild/javacc.properties 27 Jul 2004 10:03:18 -0000 @@ -18,4 +18,5 @@ # The file to which the JavaCC distribution is downloaded. -javacc.dist.zip=${external.package.dir}/JavaCC.zip \ No newline at end of file +javacc.dist.zip=${external.package.dir}/JavaCC.zip +javacc.home=${external.package.dir} \ No newline at end of file Index: hivebuild/javacc.xml =================================================================== RCS file: /home/cvspublic/jakarta-hivemind/hivebuild/javacc.xml,v retrieving revision 1.1 diff -u -r1.1 javacc.xml --- hivebuild/javacc.xml 11 Jul 2004 17:14:43 -0000 1.1 +++ hivebuild/javacc.xml 27 Jul 2004 10:03:18 -0000 @@ -37,7 +37,7 @@ <!-- JavaCC is stupid; we have to tell it about package directories, which is stupid. --> <javacc - javacchome="${external.package.dir}" + javacchome="${javacc.home}" target="@{input}" outputdirectory="${generated-java.src.dir}/@{package-path}"/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
