|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.torque.ant.task.TorqueGeneratorTask
public class TorqueGeneratorTask
Executes a unit of generation within the torque generator. $Id: TorqueGeneratorTask.java 1353994 2012-06-26 12:33:26Z tfischer $
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
TorqueGeneratorTask()
|
Method Summary | |
---|---|
Option |
createOption()
Creates a new option and adds it to the list of options. |
void |
execute()
Runs the generation. |
void |
setCombineFiles(Boolean combineFiles)
Sets whether all source files should be combined into one source tree. |
void |
setConfigDir(File configDir)
|
void |
setConfigPackage(String configPackage)
|
void |
setDefaultOutputDir(File defaultOutputDir)
Sets the default output base directory for generated files. |
void |
setDefaultOutputEncoding(String defaultOutputEncoding)
Sets the encoding which should be used for the files which do not have an output encoding set in the templates. |
void |
setJarFile(String jarFile)
The path to the jar file to use. |
void |
setLoglevel(String loglevel)
Sets the Loglevel to use in the generation process. |
void |
setOutputDirMap(Map<String,File> outputDirMap)
Sets the mapping from outputDirKey to output directories. |
void |
setOverrideConfigDir(File overrideConfigDir)
Sets the config directory overriding the template settings. |
void |
setPackaging(String packaging)
Sets the packaging. |
void |
setProjectRootDir(File projectRootDir)
Sets the root directory of the project. |
void |
setSourceDir(File sourceDir)
Sets the directory in which the source files are located. |
void |
setSourceExcludes(Set<String> sourceExcludes)
Sets the pattern which files are excluded in the generation process. |
void |
setSourceIncludes(Set<String> sourceIncludes)
Sets the pattern which files are included in the generation process. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TorqueGeneratorTask()
Method Detail |
---|
public Option createOption()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void setPackaging(String packaging)
packaging
- the packaging, either "jar" or "directory"public void setProjectRootDir(File projectRootDir)
projectRootDir
- the project root Directory.public void setConfigDir(File configDir)
public void setConfigPackage(String configPackage)
public void setDefaultOutputDir(File defaultOutputDir)
targetDir
- the default output directory,
or null to use the default.public void setOutputDirMap(Map<String,File> outputDirMap)
outputDirMap
- the new outputDirMap.public void setJarFile(String jarFile)
jarFile
- the jar file, or null.public void setSourceDir(File sourceDir)
sourceDir
- the directory in which the source files are located.public void setSourceIncludes(Set<String> sourceIncludes)
sourceIncludes
- a list containing the include patterns, or null
if no include pattern should be used.public void setSourceExcludes(Set<String> sourceExcludes)
sourceExcludes
- a list containing the exclude patterns, or null
if no exclude pattern should be used.public void setOverrideConfigDir(File overrideConfigDir)
public void setLoglevel(String loglevel)
loglevel
- the loglevel, must be one of trace, debug, info, warn
or error, or null if the loglevel defined in the templates
should be used.public void setDefaultOutputEncoding(String defaultOutputEncoding)
defaultOutputEncoding
- the default output encoding,
or null to use the generator default
(the platform default encoding).public void setCombineFiles(Boolean combineFiles)
combineFiles
- whether all sources should be combined.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |