org.apache.tools.ant.taskdefs.optional.metamata
Class MParse
- make a subclass of AbstractMetaMataTask
protected void | _execute(ExecuteStreamHandler handler) - execute the process with a specific handler
|
protected void | checkOptions() - validate options set and resolve files and paths
|
protected void | cleanUp() - clean up all the mess that we did with temporary objects
|
protected ExecuteStreamHandler | createStreamHandler() - return the default stream handler for this task
|
void | execute() - execute the command line
|
protected void | generateOptionsFile(File tofile, String[] options) - write all options to a file with one option / line
|
protected File[] | getMetamataLibs() - return an array of files containing the path to the needed
libraries to run metamata.
|
protected Vector | getOptions() - return all options of the command line as string elements
|
void | setCleanup(boolean value) - Remove the intermediate Sun JavaCC file
; optional, default false.
|
void | setDebugparser(boolean flag) - set parser debug mode; optional, default false
|
void | setDebugscanner(boolean flag) - set scanner debug mode; optional, default false
|
void | setTarget(File target) - The .jj file to process; required.
|
protected void | setUp() - check the options and build the command line
|
void | setVerbose(boolean flag) - set verbose mode
|
addAllVector , addFileSet , checkOptions , cleanUp , createClasspath , createJvmarg , createSourcepath , createStreamHandler , createTmpFile , execute , execute0 , generateOptionsFile , getFileMapping , getMetamataJar , getOptions , scanSources , scanSources , setHome , setMaxmemory , setMetamatahome , setUp |
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
MParse
public MParse()
Sole constructor.
generateOptionsFile
protected void generateOptionsFile(File tofile,
String[] options)
throws BuildException
write all options to a file with one option / line
tofile
- the file to write the options to.options
- the array of options element to write to the file.
BuildException
- thrown if there is a problem while writing
to the file.
getMetamataLibs
protected File[] getMetamataLibs()
return an array of files containing the path to the needed
libraries to run metamata. The file are not checked for
existence. You should do this yourself if needed or simply let the
forked process do it for you.
- array of jars/zips needed to run metamata.
getOptions
protected Vector getOptions()
return all options of the command line as string elements
- getOptions in interface AbstractMetamataTask
- an array of options corresponding to the setted options.
setCleanup
public void setCleanup(boolean value)
Remove the intermediate Sun JavaCC file
; optional, default false.
setDebugparser
public void setDebugparser(boolean flag)
set parser debug mode; optional, default false
setDebugscanner
public void setDebugscanner(boolean flag)
set scanner debug mode; optional, default false
setTarget
public void setTarget(File target)
The .jj file to process; required.
setVerbose
public void setVerbose(boolean flag)
set verbose mode
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.