org.objectweb.speedo.ant
Class AbstractEnhancerTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.objectweb.speedo.ant.AbstractEnhancerTask
Direct Known Subclasses:
EJBEnhancerTask, JDOEnhancerTask

public abstract class AbstractEnhancerTask
extends org.apache.tools.ant.Task

Ant task that can be used to execute the generation.

Parameters of the task:

Author:
S.Chassande-Barrioz

Nested Class Summary
 class AbstractEnhancerTask.Description
          Task used to parse nested jdopath or jormpath elements.
 
Field Summary
protected  AbstractEnhancerTask.Description persistdesc
           
protected  java.io.File src
           
 
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
AbstractEnhancerTask()
           
 
Method Summary
protected abstract  void addDtdLocations(java.util.ArrayList al)
           
 org.apache.tools.ant.types.Path createClasspath()
           
 AbstractEnhancerTask.Description createDescpath()
           
 org.apache.tools.ant.types.DTDLocation createDTD()
          Create a DTD location record.
 org.apache.tools.ant.taskdefs.MatchingTask createJavac()
           
 org.apache.tools.ant.types.Path createJormClasspath()
           
 AbstractEnhancerTask.Description createJormpath()
           
 AbstractEnhancerTask.Description createPersistenceaware()
           
 void execute()
          Main method of the task executed by ant.
 org.apache.tools.ant.types.Path getClasspath()
           
protected abstract  AbstractEnhancer getEnhancer()
           
 boolean getGenerateJormFile()
           
 org.apache.tools.ant.types.Path getJormClasspath()
           
 void init()
           
protected abstract  void initDefaultDescPath()
           
 void setClasspath(org.apache.tools.ant.types.Path cp)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setConfFile(java.io.File confFile)
          Deprecated.  
 void setGenerateJormFile(boolean val)
           
 void setInput(java.io.File intput)
           
 void setJormClasspath(org.apache.tools.ant.types.Path cp)
           
 void setJormClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setKeepsrc(boolean keepsrc)
           
 void setLogPropFile(java.io.File logPropFile)
           
 void setMappername(java.lang.String mapperName)
           
 void setOutput(java.io.File output)
           
 void setProjectname(java.lang.String projectName)
           
 void setSrc(java.io.File src)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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

persistdesc

protected AbstractEnhancerTask.Description persistdesc

src

protected java.io.File src
Constructor Detail

AbstractEnhancerTask

public AbstractEnhancerTask()
Method Detail

getEnhancer

protected abstract AbstractEnhancer getEnhancer()

initDefaultDescPath

protected abstract void initDefaultDescPath()

addDtdLocations

protected abstract void addDtdLocations(java.util.ArrayList al)

init

public void init()
          throws org.apache.tools.ant.BuildException
Overrides:
init in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setConfFile

public void setConfFile(java.io.File confFile)
Deprecated. 


setLogPropFile

public void setLogPropFile(java.io.File logPropFile)

setProjectname

public void setProjectname(java.lang.String projectName)

setMappername

public void setMappername(java.lang.String mapperName)

setSrc

public void setSrc(java.io.File src)

setKeepsrc

public void setKeepsrc(boolean keepsrc)

createDTD

public org.apache.tools.ant.types.DTDLocation createDTD()
Create a DTD location record. This stores the location of a DTD. The DTD is identified by its public Id. The location may either be a file location or a resource location.

Returns:
the DTD location object to be configured by Ant

setOutput

public void setOutput(java.io.File output)

setInput

public void setInput(java.io.File intput)

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path cp)

getClasspath

public org.apache.tools.ant.types.Path getClasspath()

createClasspath

public org.apache.tools.ant.types.Path createClasspath()

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)

createDescpath

public AbstractEnhancerTask.Description createDescpath()

createJavac

public org.apache.tools.ant.taskdefs.MatchingTask createJavac()

createJormpath

public AbstractEnhancerTask.Description createJormpath()

setJormClasspath

public void setJormClasspath(org.apache.tools.ant.types.Path cp)

getJormClasspath

public org.apache.tools.ant.types.Path getJormClasspath()

createJormClasspath

public org.apache.tools.ant.types.Path createJormClasspath()

setJormClasspathRef

public void setJormClasspathRef(org.apache.tools.ant.types.Reference r)

createPersistenceaware

public AbstractEnhancerTask.Description createPersistenceaware()

setGenerateJormFile

public void setGenerateJormFile(boolean val)

getGenerateJormFile

public boolean getGenerateJormFile()

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Main method of the task executed by ant. Parses xml parameters, loads AntSpeedoExec with its own loader

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException