at.spardat.xma.boot.antext
Class AppDescriptor
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
at.spardat.xma.boot.antext.AppDescriptor
- All Implemented Interfaces:
- java.lang.Cloneable
- public class AppDescriptor
- extends org.apache.tools.ant.Task
AppDescriptor
this class is a custom ant task, that handles the application descriptor during the build
of a project.
The projectīs build has to include this task by using the custom taskdef element: taskdef.
The class finds the required webapplication and its descriptor by using the input parameters: dir and file.
The parameter file should point to the application descriptor that should be checked.
The webapplication is searched under dir.
| Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
|
Method Summary |
void |
checkVersions()
check and replace version idīs for all resources |
void |
execute()
main excecution method |
void |
init()
|
void |
prepareInput()
check input variables, directories, load files
and parse application descriptor |
void |
saveDescriptor()
save the application descriptor file to disk |
void |
setDir(java.io.File in)
|
void |
setFile(java.lang.String in)
|
void |
setVerbose(boolean in)
|
| Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STR_HASHF_EXT
public static java.lang.String STR_HASHF_EXT
AppDescriptor
public AppDescriptor()
execute
public void execute()
throws org.apache.tools.ant.BuildException
- main excecution method
- Throws:
org.apache.tools.ant.BuildException
saveDescriptor
public void saveDescriptor()
- save the application descriptor file to disk
checkVersions
public void checkVersions()
- check and replace version idīs for all resources
prepareInput
public void prepareInput()
- check input variables, directories, load files
and parse application descriptor
setDir
public void setDir(java.io.File in)
setVerbose
public void setVerbose(boolean in)
setFile
public void setFile(java.lang.String in)
init
public void init()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException