org.apache.tools.ant.taskdefs.optional.metamata
public class MParse extends AbstractMetamataTask
UNKNOWN: make a subclass of AbstractMetaMataTask
| Constructor Summary | |
|---|---|
| MParse() | |
| Method Summary | |
|---|---|
| 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 |
| protected void | _execute(ExecuteStreamHandler handler) execute the process with a specific handler |
Throws: BuildException thrown if an option has an incorrect state.
Parameters: tofile the file to write the options to. options the array of options element to write to the file.
Throws: BuildException thrown if there is a problem while writing to the file.
Returns: array of jars/zips needed to run metamata.
Returns: an array of options corresponding to the setted options.