|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask
org.apache.tools.ant.taskdefs.optional.metamata.MParse
public class MParse
Simple Metamata MParse task. Based on the original written by Thomas Haas. This version was written for Metamata 2.0 available at http://www.metamata.com
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask |
---|
classPath, cmdl, fileSets, includedFiles, metamataHome, optionsFile, sourcePath |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
MParse()
|
Method Summary | |
---|---|
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(java.io.File tofile,
java.lang.String[] options)
write all options to a file with one option / line |
protected java.io.File[] |
getMetamataLibs()
return an array of files containing the path to the needed libraries to run metamata. |
protected java.util.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(java.io.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 |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask |
---|
addAllVector, addFileSet, createClasspath, createJvmarg, createSourcepath, createTmpFile, execute0, generateOptionsFile, getFileMapping, getMetamataJar, scanSources, scanSources, setHome, setMaxmemory, setMetamatahome |
Methods inherited from class org.apache.tools.ant.Task |
---|
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 |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MParse()
Method Detail |
---|
public void setTarget(java.io.File target)
public void setVerbose(boolean flag)
public void setDebugscanner(boolean flag)
public void setDebugparser(boolean flag)
public void setCleanup(boolean value)
public void execute() throws BuildException
execute
in class AbstractMetamataTask
BuildException
- if something goes wrong with the buildprotected ExecuteStreamHandler createStreamHandler()
createStreamHandler
in class AbstractMetamataTask
protected void setUp() throws BuildException
setUp
in class AbstractMetamataTask
BuildException
protected void _execute(ExecuteStreamHandler handler) throws BuildException
BuildException
protected void cleanUp()
cleanUp
in class AbstractMetamataTask
protected java.io.File[] getMetamataLibs()
protected void checkOptions() throws BuildException
checkOptions
in class AbstractMetamataTask
BuildException
- thrown if an option has an incorrect state.protected java.util.Vector getOptions()
getOptions
in class AbstractMetamataTask
protected void generateOptionsFile(java.io.File tofile, java.lang.String[] options) throws BuildException
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |