|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.torque.generator.maven.TorqueGeneratorMojo
public class TorqueGeneratorMojo
Executes a unit of generation within the torque generator. $Id: TorqueGeneratorMojo.java 1401885 2012-10-24 21:13:09Z tfischer $
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
TorqueGeneratorMojo()
|
Method Summary | |
---|---|
void |
execute()
Configures and runs the Torque generator. |
void |
setAddDebuggingInfoToOutput(boolean addDebuggingInfoToOutput)
Sets whether debugging information should be added to the output. |
void |
setCombineFiles(Boolean combineFiles)
Sets whether all source files should be combined into one single graph- |
void |
setConfigDir(File configDir)
|
void |
setConfigPackage(String configPackage)
|
void |
setDefaultOutputDir(File outputDir)
Sets the default output directory for generated files. |
void |
setDefaultOutputDirUsage(String defaultOutputDirUsage)
Sets the usage for the default output dir. |
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 |
setOptions(Map<String,String> options)
Sets additional options which can be added to the generation process. |
void |
setOptionsFile(File optionsFile)
Sets a options file by which generation parameters can be set. |
void |
setOutputDir(String outputDirKey,
String outputDir)
Sets the target directory for files which are not generated each time anew. |
void |
setOutputDirUsage(String outputDirKey,
String outputDirUsage)
Sets the usage for an output directory. |
void |
setOverrideConfigDir(File overrideConfigDir)
Sets the config directory overriding the template settings. |
void |
setOverrideConfigPackage(String overrideConfigPackage)
Sets the config package of the project overriding the settings. |
void |
setPackaging(String packaging)
Sets the packaging. |
void |
setProject(org.apache.maven.project.MavenProject project)
Sets the maven project this mojo runs in. |
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. |
void |
setWorkDir(File workDir)
Sets the work dir for e.g. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
getLog, setLog |
Constructor Detail |
---|
public TorqueGeneratorMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
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 outputDir)
outputDir
- the default output directory, not null.public void setOutputDir(String outputDirKey, String outputDir)
targetDir
- the target directory, or null to use the default.public void setJarFile(String jarFile)
jarFile
- the jar file, or null.public void setProject(org.apache.maven.project.MavenProject project)
project
- the maven project this mojo runs in.public void setDefaultOutputDirUsage(String defaultOutputDirUsage)
defaultOutputDirUsage
- the new usage, not null.public void setOutputDirUsage(String outputDirKey, String outputDirUsage)
outputDirKey
- key for the output directory, not null.outputDirUsage
- the new usage, not 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 setOverrideConfigPackage(String overrideConfigPackage)
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 setOptions(Map<String,String> options)
options
- the overriding options, or null if no options
should be overridden.public void setCombineFiles(Boolean combineFiles)
combineFiles
- whether the source file should be combined.public void setWorkDir(File workDir)
workDir
- the new workdir.public void setOptionsFile(File optionsFile)
optionsFile
- the path to the file containing the generation
options.public void setAddDebuggingInfoToOutput(boolean addDebuggingInfoToOutput)
addDebuggingInfoToOutput
- true if debugging information
should be added to the output, false otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |