java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.objectstyle.woproject.ant.WOTask
- Direct Known Subclasses:
- WOApplication, WOFramework
- public abstract class WOTask
- extends org.apache.tools.ant.Task
A WOTask is a common superclass of WOApplication and WOFramework that
implements common build functionality.
| Methods inherited from class org.apache.tools.ant.Task |
execute, 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classes
protected java.util.Vector classes
name
protected java.lang.String name
destDir
protected java.lang.String destDir
principalClass
protected java.lang.String principalClass
jarName
protected java.lang.String jarName
resources
protected java.util.Vector resources
wsresources
protected java.util.Vector wsresources
lib
protected java.util.Vector lib
subtaskFactory
protected SubtaskFactory subtaskFactory
WOTask
public WOTask()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
setJarName
public void setJarName(java.lang.String jarName)
getJarName
public java.lang.String getJarName()
setPrincipalClass
public void setPrincipalClass(java.lang.String principalClass)
getPrincipalClass
public java.lang.String getPrincipalClass()
setDestDir
public void setDestDir(java.lang.String destDir)
addClasses
public void addClasses(org.apache.tools.ant.types.FileSet set)
addResources
public void addResources(org.apache.tools.ant.types.FileSet set)
addLib
public void addLib(org.apache.tools.ant.types.FileSet set)
addWsresources
public void addWsresources(org.apache.tools.ant.types.FileSet set)
taskDir
protected abstract java.io.File taskDir()
- Returns a location where WOTask is being built up.
For instance the
.woa dir or the .framework dir.
resourcesDir
protected abstract java.io.File resourcesDir()
- Returns a location where resources should be put.
For instance this can be WOComponents, EOModels etc.
wsresourcesDir
protected abstract java.io.File wsresourcesDir()
- Returns a location where web server resources should be put.
WebServerResources are normally images, JavaScript files,
stylesheets, etc.
validateAttributes
protected void validateAttributes()
throws org.apache.tools.ant.BuildException
- Ensure we have a consistent and legal set of attributes, and set any
internal flags necessary based on different combinations of attributes.
createDirectories
protected void createDirectories()
throws org.apache.tools.ant.BuildException
hasWs
public boolean hasWs()
hasResources
public boolean hasResources()
hasClasses
public boolean hasClasses()
jarClasses
protected void jarClasses()
throws org.apache.tools.ant.BuildException
copyResources
protected void copyResources()
throws org.apache.tools.ant.BuildException
copyWsresources
protected void copyWsresources()
throws org.apache.tools.ant.BuildException
copyLibs
protected void copyLibs()
throws org.apache.tools.ant.BuildException
hasLib
protected boolean hasLib()
hasJava
protected boolean hasJava()
getLibNames
public java.util.Iterator getLibNames()
- Returns an Iterator over the file names of the library files
included in the lib nested element.