|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.torque.mojo.TexenTaskMojo
public abstract class TexenTaskMojo
The base Class for all Mojos wrapping Texen Tasks.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
TexenTaskMojo(org.apache.texen.ant.TexenTask generatorTask)
Creates a new instance of AbstractTorqueMojo. |
Method Summary | |
---|---|
protected void |
configureTask()
Configures the Texen task which is wrapped by this mojo. |
void |
execute()
Executes the wrapped Texen task. |
protected void |
generateContextProperties()
Generates the context properties file for Texen. |
protected org.apache.tools.ant.Project |
getAntProject()
Returns the ant project. |
String |
getContextPropertiesPath()
Returns the path to the generated property file used as Texen's context properties. |
protected org.apache.texen.ant.TexenTask |
getGeneratorTask()
returns the generator Task for this mojo. |
protected abstract org.apache.commons.configuration.PropertiesConfiguration |
getMojoContextProperties()
Returns the context properties for the Texen task which are defined in the configuration of the child mojo. |
String |
getOutputDir()
Returns the path to Torque's output directory. |
org.apache.maven.project.MavenProject |
getProject()
Returns the maven project. |
String |
getTemplatePath()
Returns the path to Torque's templates, if the classpath is not used to load the templates. |
boolean |
getUseClasspath()
Returns whether the classpath is used to locate the templates. |
Map |
getUserContextProperties()
Returns the map which defines user-defined context properties. |
void |
setContextPropertiesPath(String contextPropertiesPath)
Sets the path to the generated property file used as Texen's context properties. |
protected void |
setGeneratorTask(org.apache.texen.ant.TexenTask generatorTask)
Sets the Texen task. |
void |
setOutputDir(String outputDir)
Sets the path to Torque's output directory. |
void |
setProject(org.apache.maven.project.MavenProject project)
Sets the maven project. |
void |
setTemplatePath(String templatePath)
Sets the path to Torque's templates, if the classpath is not used to load the templates. |
void |
setUseClasspath(boolean useClasspath)
Sets whether the classpath should be used to locate the templates. |
void |
setUserContextProperties(Map userContextProperties)
Sets the map which defines user-defined context properties. |
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 |
Constructor Detail |
---|
public TexenTaskMojo(org.apache.texen.ant.TexenTask generatorTask)
IllegalArgumentException
- if generatorTask is null.Method Detail |
---|
protected void setGeneratorTask(org.apache.texen.ant.TexenTask generatorTask)
generatorTask
- the Texen task to be used in this Mojo.public void setProject(org.apache.maven.project.MavenProject project)
project
- the maven project where this plugin runs in.public org.apache.maven.project.MavenProject getProject()
protected org.apache.tools.ant.Project getAntProject()
public void setOutputDir(String outputDir)
outputDir
- the path to Torque's output directory.public String getOutputDir()
public void setTemplatePath(String templatePath)
templatePath
- the path to Torque's templates.public String getTemplatePath()
public void setUseClasspath(boolean useClasspath)
templatePath
- the path to Torque's templates.public boolean getUseClasspath()
public void setContextPropertiesPath(String contextPropertiesPath)
generatedPropertyFilePath
- the path to the generated context
properties file.public String getContextPropertiesPath()
public void setUserContextProperties(Map userContextProperties)
contextProperties
- the user-defined context properties.public Map getUserContextProperties()
protected org.apache.texen.ant.TexenTask getGeneratorTask()
protected void generateContextProperties() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if an error occurs.protected void configureTask() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if an error occurs when setting the Tasks
properties.public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if an error occurs during execution.Mojo.execute()
protected abstract org.apache.commons.configuration.PropertiesConfiguration getMojoContextProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |