org.apache.maven.plugins.site
Class SiteStageMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.site.AbstractSiteMojo
org.apache.maven.plugins.site.AbstractSiteRenderingMojo
org.apache.maven.plugins.site.SiteMojo
org.apache.maven.plugins.site.SiteStageMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- SiteStageDeployMojo
- public class SiteStageMojo
- extends SiteMojo
Staging a site in specific directory.
Useful to test the generated site.
- Version:
- $Id: SiteStageMojo.java 591675 2007-11-03 20:26:56Z dennisl $
- Author:
- Vincent Siveton
|
Field Summary |
protected java.io.File |
stagingDirectory
Staging directory location. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
void |
execute()
Generate the project site
throws MojoExecutionException if any |
protected static java.lang.String |
getStructure(org.apache.maven.project.MavenProject project,
boolean ignoreMissingSiteUrl)
Generates the site structure using the project hiearchy (project and its modules) or using the
distributionManagement elements from the pom.xml. |
| 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 |
stagingDirectory
protected java.io.File stagingDirectory
- Staging directory location.
SiteStageMojo
public SiteStageMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Description copied from class:
SiteMojo
- Generate the project site
throws MojoExecutionException if any
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class SiteMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException- See Also:
Mojo.execute()
getStructure
protected static java.lang.String getStructure(org.apache.maven.project.MavenProject project,
boolean ignoreMissingSiteUrl)
throws org.apache.maven.plugin.MojoFailureException
- Generates the site structure using the project hiearchy (project and its modules) or using the
distributionManagement elements from the pom.xml.
- Parameters:
project - ignoreMissingSiteUrl -
- Returns:
- the structure relative path
- Throws:
org.apache.maven.plugin.MojoFailureException - if any
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.