Bug 20020 - ANTLR.java invalid command-line argument: -traceTreeWalker;
Summary: ANTLR.java invalid command-line argument: -traceTreeWalker;
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.5.1
Hardware: Other other
: P3 normal (vote)
Target Milestone: 1.6
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-18 15:40 UTC by ow
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ow 2003-05-18 15:40:57 UTC
AFAIK, "-traceTreeParser" is the valid option now.

--------------------------------------------------------------

ANTLR Parser Generator   Version 2.7.2   1989-2003 jGuru.com
warning: invalid command-line argument: -traceTreeWalker; ignored

---> ANTLR.java 
 ....
    private void populateAttributes() {
	....   

        if (traceTreeWalker) {
// here, I think
            commandline.createArgument().setValue("-traceTreeWalker");
        }
        if (debug) {
            commandline.createArgument().setValue("-debug");
        }
    }
Comment 1 Stefan Bodewig 2003-05-19 16:04:41 UTC
Do you know of an easiliy accessible way for Ant to determine whether it is running
version 2.7.2 (or later) or 2.7.0?

In 2.7.0 the option is documented as -traceTreeWalker.
Comment 2 ow 2003-05-19 16:54:02 UTC
antlr.Version class appears to have all the info you may need.
Comment 3 Stefan Bodewig 2003-05-21 13:14:58 UTC
You are right.  The best thing about antlr.Version is that it didn't exist in 2.7.0
so we only need to check for its existance.
Comment 4 Stefan Bodewig 2003-05-21 13:32:19 UTC
fixed in nightly build 2003-05-22.
Comment 5 Matt Benson 2004-04-17 19:53:24 UTC
*** Bug 28447 has been marked as a duplicate of this bug. ***