org.objectweb.speedo.ant
Class AntSpeedo

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.objectweb.speedo.ant.AntSpeedo

public class AntSpeedo
extends org.apache.tools.ant.Task

Ant task that can be used to execute the generation.

Parameters of the task:

Author:
Y. Devaux

Inner Class Summary
 class AntSpeedo.Description
          Task used to parse nested jdopath or jormpath elements.
 
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
AntSpeedo()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
           
 org.apache.tools.ant.types.DTDLocation createDTD()
          Create a DTD location record.
 AntSpeedo.Description createJdopath()
           
 org.apache.tools.ant.types.Path createJormClasspath()
           
 AntSpeedo.Description createJormpath()
           
 AntSpeedo.Description createPersistenceaware()
           
 void execute()
          Main method of the task executed by ant.
 org.apache.tools.ant.types.Path getClasspath()
           
 org.apache.tools.ant.types.Path getJormClasspath()
           
 void init()
           
 void setClasspath(org.apache.tools.ant.types.Path cp)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setConfFile(java.io.File jormconfFile)
           
 void setFailsonerror(boolean fail)
           
 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 setKeepclasses(boolean val)
           
 void setKeepsrc(boolean keepsrc)
           
 void setLocalpropertiesfile(boolean jormlocalpropertiesfile)
           
 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, handleErrorOutput, handleOutput, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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
 

Constructor Detail

AntSpeedo

public AntSpeedo()
Method Detail

init

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

setConfFile

public void setConfFile(java.io.File jormconfFile)

setLocalpropertiesfile

public void setLocalpropertiesfile(boolean jormlocalpropertiesfile)

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)

setFailsonerror

public void setFailsonerror(boolean fail)

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)

createJdopath

public AntSpeedo.Description createJdopath()

createJormpath

public AntSpeedo.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 AntSpeedo.Description createPersistenceaware()

setKeepclasses

public void setKeepclasses(boolean val)

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