addClasspathEntry
protected void addClasspathEntry(String resource)
Search for the given resource and add the directory or archive
that contains it to the classpath.
Doesn't work for archives in JDK 1.1 as the URL returned by
getResource doesn't contain the name of the archive.
createClasspath
public Path createClasspath()
Adds a classpath to be set
because a directory might be given for Antlr debug.
execute
public void execute()
throws BuildException
Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.
- execute in interface Task
BuildException
- if something goes wrong with the build
init
public void init()
throws BuildException
Adds the jars or directories containing Antlr
this should make the forked JVM work without having to
specify it directly.
- init in interface Task
is272
protected boolean is272()
Whether the antlr version is 2.7.2 (or higher).
- true if the version of Antlr present is 2.7.2 or later.
- Ant 1.6
setDebug
public void setDebug(boolean enable)
Sets a flag to enable ParseView debugging
setDiagnostic
public void setDiagnostic(boolean enable)
Sets a flag to emit diagnostic text
setDir
public void setDir(File d)
The working directory of the process
setFork
public void setFork(boolean s)
setGlib
public void setGlib(File superGrammar)
Sets an optional super grammar file
- ant 1.6
setGlib
public void setGlib(String superGrammar)
since ant 1.6
Sets an optional super grammar file.
Use setGlib(File superGrammar) instead.
setHtml
public void setHtml(boolean enable)
If true, emit html
setOutputdirectory
public void setOutputdirectory(File outputDirectory)
The directory to write the generated files to.
setTarget
public void setTarget(File target)
The grammar file to process.
setTrace
public void setTrace(boolean enable)
If true, enables all tracing.
setTraceLexer
public void setTraceLexer(boolean enable)
If true, enables lexer tracing.
setTraceParser
public void setTraceParser(boolean enable)
If true, enables parser tracing.
setTraceTreeWalker
public void setTraceTreeWalker(boolean enable)
Sets a flag to allow the user to enable tree walker tracing