| com.metaboss.sdlctools.applications.anttasks.MetaBossTask
All known Subclasses: com.metaboss.sdlctools.applications.anttasks.scenariorunner.ScenarioRunnerTask, com.metaboss.sdlctools.applications.anttasks.convertors.MetaBossUMLProfile, com.metaboss.sdlctools.applications.anttasks.MetaBossModelToolTask,
MetaBossTask | abstract public class MetaBossTask extends Task (Code) | | Represents the base class for all tasks using MetaBoss.
It handles static initialisation of the 'MetaBoss.Home' java system property from the environment.
The 'MetaBoss.Home' java system property is used by many MetaBoss programs to find out the location of the
libraries, configuration files etc. This task will attempt to ensure that the
'MetaBoss.Home' java system property is set as follows:
- If 'MetaBoss.Home' java system property is already set - it is left alone
and no futher propcessing is done.
- If 'metaboss_home' ant project property is set - it is verified to contain valid and accessible directory
and is set as 'MetaBoss.Home' java system property.
- If 'METABOSS_HOME' environment variable is set - it is verified to contain valid and accessible directory
and is set as 'MetaBoss.Home' java system property.
- The directory is inferred from the location of the jar file containing this class.
This jar is expected to be in /lib/ directory therefore the path to the grandparent directory
of the jar is set as 'MetaBoss.Home' java system property.
|
getLogger | public TaskLogger getLogger()(Code) | | The getter for the logger
|
getMetaBossHome | protected File getMetaBossHome() throws BuildException(Code) | | |
getPath | public Path getPath(String pPathName) throws BuildException(Code) | | |
getPathAsFileSet | public FileSet getPathAsFileSet(String pPathName) throws BuildException(Code) | | |
handleException | protected void handleException(Throwable pThrowable) throws BuildException(Code) | | |
init | public void init()(Code) | | The lifecycle method. Derived classes must call super
|
|
|