Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.lib » ant » [javadoc | source]
org.apache.openjpa.lib.ant
abstract public class: AbstractTask [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.MatchingTask
            org.apache.openjpa.lib.ant.AbstractTask

All Implemented Interfaces:
    SelectorContainer, Cloneable

Direct Known Subclasses:
    SchemaToolTask, ReverseMappingToolTask, MetaDataToolTask, ApplicationIdToolTask, PCEnhancerTask, MappingToolTask

Ant tasks all have a nested <config&rt; tag, which uses the configuration as a bean-like task. E.g., you can do: <mytask&rt;
  <config connectionUserName="foo"/&rt;
</mytask&rt;
The default configuration for the system will be used if the <config&rt; subtask is excluded.
Field Summary
protected final  List fileSets     
protected  boolean haltOnError     
protected  Path classpath     
protected  boolean useParent     
protected  boolean isolate     
Method from org.apache.openjpa.lib.ant.AbstractTask Summary:
addFileset,   assertFiles,   createClasspath,   createConfig,   execute,   executeOn,   getClassLoader,   getConfiguration,   newConfiguration,   setClasspath,   setHaltOnError,   setIsolate,   setUseParentClassloader
Methods from org.apache.tools.ant.taskdefs.MatchingTask:
XsetIgnore,   XsetItems,   add,   addAnd,   addContains,   addContainsRegexp,   addCustom,   addDate,   addDepend,   addDepth,   addDifferent,   addFilename,   addMajority,   addModified,   addNone,   addNot,   addOr,   addPresent,   addSelector,   addSize,   addType,   appendSelector,   createExclude,   createExcludesFile,   createInclude,   createIncludesFile,   createPatternSet,   getSelectors,   hasSelectors,   selectorCount,   selectorElements,   setCaseSensitive,   setDefaultexcludes,   setExcludes,   setExcludesfile,   setFollowSymlinks,   setIncludes,   setIncludesfile,   setProject
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   init,   log,   log,   log,   log,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.lib.ant.AbstractTask Detail:
 public  void addFileset(FileSet set) 
 protected  void assertFiles(String[] files) 
    Helper method to throw a standard exception if the task is not given any files to execute on. Implementations might call this method as the first step in #executeOn to validate that they are given files to work on.
 public Path createClasspath() 
 public Object createConfig() 
 public  void execute() throws BuildException 
 abstract protected  void executeOn(String[] files) throws Exception
    Perform the task action on the given files.
 protected ClassLoader getClassLoader() 
    Return the classloader to use.
 public Configuration getConfiguration() 
    The task configuration.
 abstract protected ConfigurationImpl newConfiguration()
    Implement this method to return a configuration object for the product in use.
 public  void setClasspath(Path classPath) 
 public  void setHaltOnError(boolean haltOnError) 
    Set whether we want the task to ignore all errors.
 public  void setIsolate(boolean isolate) 
    Whether we want the ClassLoader to be isolated from all other ClassLoaders
 public  void setUseParentClassloader(boolean useParent) 
    Whether we want to delegate to the parent ClassLoader for resolveing classes. This may "taint" classes.