Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.woproject.ant
Class WOTask  view WOTask download WOTask.java

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.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.


Field Summary
protected  java.util.Vector classes
           
protected  java.lang.String destDir
           
protected  java.lang.String jarName
           
protected  java.util.Vector lib
           
protected  java.lang.String name
           
protected  java.lang.String principalClass
           
protected  java.util.Vector resources
           
protected  SubtaskFactory subtaskFactory
           
protected  java.util.Vector wsresources
           
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
WOTask()
           
 
Method Summary
 void addClasses(org.apache.tools.ant.types.FileSet set)
           
 void addLib(org.apache.tools.ant.types.FileSet set)
           
 void addResources(org.apache.tools.ant.types.FileSet set)
           
 void addWsresources(org.apache.tools.ant.types.FileSet set)
           
protected  void copyLibs()
           
protected  void copyResources()
           
protected  void copyWsresources()
           
protected  void createDirectories()
           
 java.lang.String getJarName()
           
 java.util.Iterator getLibNames()
          Returns an Iterator over the file names of the library files included in the lib nested element.
 java.lang.String getName()
           
 java.lang.String getPrincipalClass()
           
 boolean hasClasses()
           
protected  boolean hasJava()
           
protected  boolean hasLib()
           
 boolean hasResources()
           
 boolean hasWs()
           
protected  void jarClasses()
           
protected abstract  java.io.File resourcesDir()
          Returns a location where resources should be put.
 void setDestDir(java.lang.String destDir)
           
 void setJarName(java.lang.String jarName)
           
 void setName(java.lang.String name)
           
 void setPrincipalClass(java.lang.String principalClass)
           
protected abstract  java.io.File taskDir()
          Returns a location where WOTask is being built up.
protected  void validateAttributes()
          Ensure we have a consistent and legal set of attributes, and set any internal flags necessary based on different combinations of attributes.
protected abstract  java.io.File wsresourcesDir()
          Returns a location where web server resources should be put.
 
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 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
 

Field Detail

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
Constructor Detail

WOTask

public WOTask()
Method Detail

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.