Bug 63868 - JavaCC/JJTree: add <classpath> element and "classpathref" attribute
Summary: JavaCC/JJTree: add <classpath> element and "classpathref" attribute
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.9.14
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-21 07:15 UTC by zosrothko
Modified: 2019-10-24 07:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.