Bug 63868

Summary: JavaCC/JJTree: add <classpath> element and "classpathref" attribute
Product: Ant Reporter: zosrothko <francis.andre.kampbell>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 1.9.14   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description zosrothko 2019-10-21 07:15:20 UTC
Hello

A newcoming 8.0.0 version of JavaCC and JJTree will be delivered with 2 or more jars: a parser.jar and one or more additional generator.jar (Java, c++, C#). As such the way the the JavaCC/JJTree tasks are referencing the location of a single jar with the "javacchome" attribute is incompatible with the upcoming new version.

So, this enhancement proposes to add the traditional <classpath> element and the "classpathref" attribute to the JavaCC/JJTree tasks.

Also, a new option is mandatory for using the JavaCC 8.0 future versions: CODE_GENERATOR that sets up the language of the generated parser, (Java, C++, C#).

This enhancement should be targeted for the 1.9 Ant version as well as above 1.10.
Comment 1 Jaikiran Pai 2019-10-24 05:17:07 UTC
Hello zosrothko, what's the minimal Java version that JavaCC and JJTree 8.0.0 going to support? The reason I ask is - Ant 1.9.x is going to see very minimal commits/changes. We are thinking of including only limited bug fixes in that versions. For enhancements like this, we have been focusing solely on 1.10.x of Ant.
Comment 2 zosrothko 2019-10-24 07:05:05 UTC
Hello Jaikiran

The target for JavaCC/JJTree 8.0.0 is JavaSE-1.8. The request for targetting also 1.9 is because some Ant scripts (out of JavaCC itself, but which are using JavaCC) do not work with 1.10 or greater.