Package org.codehaus.modello.maven
Class ModelloXdocMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.modello.maven.AbstractModelloGeneratorMojo
org.codehaus.modello.maven.ModelloXdocMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="xdoc",
threadSafe=true)
public class ModelloXdocMojo
extends AbstractModelloGeneratorMojo
Creates documentation for the model in xdoc format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe first version of the model.private FileThe output directory of the generated documentation.private StringFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomizeParameters(Properties parameters) Override this method to customize the values in the properties set.protected Stringprotected booleanvoidsetFirstVersion(String firstVersion) voidsetOutputDirectory(File outputDirectory) Methods inherited from class org.codehaus.modello.maven.AbstractModelloGeneratorMojo
createParameters, execute, getBasedir, getModelloCore, getModels, getPackageWithVersion, getProject, getVersion, producesResources, setBasedir, setBuildContext, setModelloCore, setModels, setPackagedVersions, setPackageWithVersion, setProject, setVersionMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-site/xdoc", required=true) private File outputDirectoryThe output directory of the generated documentation. -
xdocFileName
- Since:
- 1.0-alpha-21
-
firstVersion
The first version of the model. This is used to decide whether or not to show the since column. If this is not specified, it defaults to the version of the model, which in turn means that the since column will not be shown.- Since:
- 1.0-alpha-14
-
-
Constructor Details
-
ModelloXdocMojo
public ModelloXdocMojo()
-
-
Method Details
-
getGeneratorType
- Specified by:
getGeneratorTypein classAbstractModelloGeneratorMojo
-
producesCompilableResult
protected boolean producesCompilableResult()- Overrides:
producesCompilableResultin classAbstractModelloGeneratorMojo
-
getOutputDirectory
- Specified by:
getOutputDirectoryin classAbstractModelloGeneratorMojo
-
setOutputDirectory
-
customizeParameters
Description copied from class:AbstractModelloGeneratorMojoOverride this method to customize the values in the properties set.This method will be called after the parameters have been populated with the parameters in the abstract mojo.
- Overrides:
customizeParametersin classAbstractModelloGeneratorMojo- Parameters:
parameters- the parameters to customize
-
getFirstVersion
-
setFirstVersion
-