net.sf.xsltmp
Class InitializeMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.sf.xsltmp.InitializeMojo
All Implemented Interfaces:
XsltGeneratorConstants, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class InitializeMojo
extends org.apache.maven.plugin.AbstractMojo
implements XsltGeneratorConstants

Initializes the XSLT generator maven plugin at the start of the build.

Prepares the timestamp of the xslt generation. This mojo should be run before other executions of the xslt generator. It touches a prepared timestamp file. The file is then used as the timestamp of xslt generation after all the executions of the xslt generator are finished.


Field Summary
 
Fields inherited from interface net.sf.xsltmp.XsltGeneratorConstants
BASE_DIR, DEFAULT_DEST_DIR, DEFAULT_EMPTY_FILE_CONTENTS, DEFAULT_EMPTY_FILENAME, EXTRACTS_DIR, FILTERED_DIR, PREPARED_TIMESTAMP_FILENAME, TIMESTAMP_FILENAME
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InitializeMojo()
           
 
Method Summary
 void execute()
           
 org.apache.maven.project.MavenProject getProject()
           
 void setProject(org.apache.maven.project.MavenProject project)
           
 
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

InitializeMojo

public InitializeMojo()
Method Detail

getProject

public org.apache.maven.project.MavenProject getProject()

setProject

public void setProject(org.apache.maven.project.MavenProject project)

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


Copyright © 2008-2010 SEAF. All Rights Reserved.