|
||||||||||
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.BaseMojo org.apache.torque.mojo.AntTaskMojo org.apache.torque.mojo.TexenTaskMojo
public abstract class TexenTaskMojo
The base class for mojos that wrap Texen Ant Tasks
Field Summary |
---|
Fields inherited from class org.apache.torque.mojo.BaseMojo |
---|
FS, SKIP_PACKAGING_TYPE |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
TexenTaskMojo()
|
Method Summary | |
---|---|
protected void |
configureTask()
Configures the Texen task wrapped by this mojo. |
void |
executeMojo()
Executes the wrapped Texen task. |
protected void |
generateContextProperties()
Generates the context properties file for Texen. |
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. |
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. |
void |
setOutputDir(String outputDir)
Sets the path to Torque's output directory. |
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.torque.mojo.AntTaskMojo |
---|
getAntProject, getAntTask, getIniatializedAntProject, setAntProject, setAntTask |
Methods inherited from class org.apache.torque.mojo.BaseMojo |
---|
afterExecution, beforeExecution, execute, getEncoding, getMavenSession, getProject, getSettings, isForceMojoExecution, isSkip, isStartMavenLogger, setEncoding, setForceMojoExecution, setMavenSession, setProject, setSettings, setSkip, setStartMavenLogger, skipMojo |
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()
Method Detail |
---|
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
configureTask
in class AntTaskMojo
org.apache.maven.plugin.MojoExecutionException
public void executeMojo() throws org.apache.maven.plugin.MojoExecutionException
executeMojo
in class AntTaskMojo
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 |