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 Task
Ant task that can be used to execute the generation.
Parameters of the task:
localpropertiesfile
, indicates whether there is a jdo.properties
confFile
, location of the corresponding properties files
logPropFile
, location of the log system properties file
projectname
is the project name (optional) (Jorm parameter)
mappername
is the mapper name for which the code will be generated
keepsrc
, indicates whether generated Java files must be kept (optionnal, the default value is true
input
, location of the base directory of .class
files
output
, location of the base destination directory
classpath
nested classpath element containing the speedo and jorm jars
jdopath
nested element containing a parameter dir
and include elements
, location of .jdo
JDO XML Descriptors
jormpath
(similar to jdopath
), location of .pd
JORM XML Descriptors
persistenceaware
(similar to jdopath
), location of Persistence Aware Java Class
keepclasses
, indicates whether original java classes must be stored in another directory (see below)
storedir
, location for storing original classes
failsonerror
, indicates whether the process should fail if an error occurs
- Author:
- Y. Devaux
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntSpeedo
public AntSpeedo()
init
public void init()
throws BuildException
- Throws:
BuildException
setConfFile
public void setConfFile(java.io.File confFile)
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 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(Path cp)
getClasspath
public Path getClasspath()
createClasspath
public Path createClasspath()
setClasspathRef
public void setClasspathRef(Reference r)
createJdopath
public AntSpeedo.Description createJdopath()
createJavac
public MatchingTask createJavac()
createJormpath
public AntSpeedo.Description createJormpath()
setJormClasspath
public void setJormClasspath(Path cp)
getJormClasspath
public Path getJormClasspath()
createJormClasspath
public Path createJormClasspath()
setJormClasspathRef
public void setJormClasspathRef(Reference r)
createPersistenceaware
public AntSpeedo.Description createPersistenceaware()
setGenerateJormFile
public void setGenerateJormFile(boolean val)
getGenerateJormFile
public boolean getGenerateJormFile()
execute
public void execute()
throws BuildException
- Main method of the task executed by ant.
Parses xml parameters, loads AntSpeedoExec with its own loader
- Throws:
BuildException