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:
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
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 |
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 |
AntSpeedo
public AntSpeedo()
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