ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9682] New: - javacchome argument seems to be not working properly.
Date Fri, 07 Jun 2002 01:24:52 GMT
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=9682>.
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=9682

javacchome argument seems to be not working properly.

           Summary: javacchome argument seems to be not working properly.
           Product: Ant
           Version: 1.4.1
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: kdvolder@cs.ubc.ca


I am using version 1.4.1 of ant installed through the fink distribution on 
Mac OS X.

When I am using a javacc ant task:

     <javacc 
         target="tyRuBa/parser/TyRuBaParser.jj" 
	 outputdirectory="tyRuBa/parser"
         javacchome="/Users/kdvolder/javacc2.0"
     />

I get an error because the JavaCC installation classes are not found 
when running the ant task.

I verified that the javacchome does point to the right location.

The bug is not sever because I was able to work around it by setting the 
JavaCC2.0 zip file on my classpath. You could call this a But that kind of 
defeats the purpose of the javacchome attribute.

I also tried with new version 2.1 of JavaCC with the same result.

I beleive to fix this bug, javacc task should add a -classpath pointing to the 
zip file inside the install directory, rather than give a -Dinstall.root=... 
argument.

Below the output from running ant in verbose mode showing the error for 
JavaCC 2.1 installation.

parser:
   [javacc] java -Dinstall.root=/Users/kdvolder/javacc2.1 
COM.sun.labs.javacc.Main -OUTPUT_DIRECTORY:/Users/kdvolder/
tyruba/tyRuBa/parser /Users/kdvolder/tyruba/tyRuBa/parser/
TyRuBaParser.jj
   [javacc] Exception in thread "main" java.lang.NoClassDefFoundError: 
COM/sun/labs/javacc/Main

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message