org.apache.tools.ant.taskdefs.optional.metamata
public abstract class AbstractMetamataTask extends Task
Field Summary | |
---|---|
protected Path | classPath
The user classpath to be provided. |
protected CommandlineJava | cmdl the command line used to run MAudit |
protected Vector | fileSets the set of files to be audited |
protected Hashtable | includedFiles |
protected File | metamataHome
Metamata home directory. |
protected File | optionsFile the options file where are stored the command line options |
protected Path | sourcePath the path to the source file |
Constructor Summary | |
---|---|
AbstractMetamataTask() | |
protected | AbstractMetamataTask(String className) initialize the task with the classname of the task to run |
Method Summary | |
---|---|
protected static void | addAllVector(Vector dest, Enumeration files)
convenient method for JDK 1.1. |
void | addFileSet(FileSet fs)
The java files or directory to audit.
|
protected void | checkOptions() validate options set |
protected void | cleanUp() clean up all the mess that we did with temporary objects |
Path | createClasspath()
Sets the class path (also source path unless one explicitly set).
|
Commandline.Argument | createJvmarg()
Additional optional parameters to pass to the JVM.
|
Path | createSourcepath()
Sets the source path.
|
protected abstract ExecuteStreamHandler | createStreamHandler()
create a stream handler that will be used to get the output since
metamata tools do not report with convenient files such as XML. |
protected File | createTmpFile() |
void | execute() execute the command line |
protected void | execute0(ExecuteStreamHandler handler) execute the process with a specific handler |
protected void | generateOptionsFile(File tofile, Vector options) |
protected Hashtable | getFileMapping() |
protected File | getMetamataJar(File home) return the location of the jar file used to run |
protected abstract Vector | getOptions() return all options of the command line as string elements |
protected Hashtable | scanSources(Hashtable map) |
protected Hashtable | scanSources(Hashtable mapping, String[] entries) |
void | setHome(File value)
the metamata.home property to run all tasks. |
void | setMaxmemory(String max)
Set the maximum memory for the JVM; optional.
|
void | setMetamatahome(File value)
The home directory containing the Metamata distribution; required |
protected void | setUp() check the options and build the command line |
<jvmarg>
by adding these empty
entries to metamata.properties
located at ${metamata.home}/bin
metamata.classpath= metamata.sourcepath= metamata.baseclasspath=
Returns: the list of .java files (as their absolute path) that should be audited.
UNKNOWN: ignore="true"