fr.paris.lutece.maven
Class AbstractLuteceWebappMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by fr.paris.lutece.maven.AbstractLuteceMojo
          extended by fr.paris.lutece.maven.AbstractLuteceWebappMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AssemblySiteMojo, ExplodedMojo, InplaceMojo

public abstract class AbstractLuteceWebappMojo
extends AbstractLuteceMojo

Abstracts functionnality common to mojos that create a Lutece webapp from Lutece artifacts.


Field Summary
protected  java.util.Set<org.apache.maven.artifact.Artifact> artifacts
          The set of artifacts required by this project, including transitive dependencies.
 
Fields inherited from class fr.paris.lutece.maven.AbstractLuteceMojo
ASSEMBLY_WEBAPP_EXCLUDES, ASSEMBLY_WEBAPP_INCLUDES, classesDirectory, defaultConfDirectory, EXCLUDE_PATTERN_ASSEMBLY, EXCLUDE_PATTERN_CLASSES, EXCLUDE_PATTERN_JAVA, EXCLUDE_PATTERN_LIB, EXCLUDE_PATTERN_PACKAGE_HTML, EXCLUDE_PATTERN_SITE, EXCLUDE_PATTERN_SVN, EXCLUDE_PATTERN_TARGET, EXCLUDE_PATTERN_WEBAPP, INCLUDE_PATTERN_ALL, INCLUDE_PATTERN_SQL, INCLUDE_PATTERN_SRC, INCLUDE_PATTERN_WEBAPP, LUTECE_CORE_PACKAGING, LUTECE_CORE_TYPE, LUTECE_PLUGIN_PACKAGING, LUTECE_PLUGIN_TYPE, LUTECE_SITE_PACKAGING, PACKAGE_CLASSES_EXCLUDES, PACKAGE_CLASSES_INCLUDES, PACKAGE_WEBAPP_EXCLUDES, PACKAGE_WEBAPP_INCLUDES, project, sqlDirectory, WEBAPP_CLASSIFIER, webappSourceDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractLuteceWebappMojo()
           
 
Method Summary
protected  void addToExplodedWebapp(org.apache.maven.artifact.Artifact luteceArtifact, java.io.File webappDir)
          Adds a Lutece artifact to an exploded webapp.
protected  void explodeWebapp(java.io.File targetDir)
          Creates an exploded webapp structure from the current project.
protected  java.util.Set<org.apache.maven.artifact.Artifact> filterArtifacts(org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
          Filters the project's set of artifacts with an ArtifactFilter.
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

artifacts

protected java.util.Set<org.apache.maven.artifact.Artifact> artifacts
The set of artifacts required by this project, including transitive dependencies.

Constructor Detail

AbstractLuteceWebappMojo

public AbstractLuteceWebappMojo()
Method Detail

explodeWebapp

protected void explodeWebapp(java.io.File targetDir)
                      throws org.apache.maven.plugin.MojoExecutionException
Creates an exploded webapp structure from the current project.

Parameters:
targetDir - the destination directory.
Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occurs while exploding the webapp.

addToExplodedWebapp

protected void addToExplodedWebapp(org.apache.maven.artifact.Artifact luteceArtifact,
                                   java.io.File webappDir)
                            throws org.apache.maven.plugin.MojoExecutionException
Adds a Lutece artifact to an exploded webapp.

Parameters:
luteceArtifact - the Lutece artifact.
webappDir - the exploded webapp's base directory.
Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occurs while unpacking.

filterArtifacts

protected java.util.Set<org.apache.maven.artifact.Artifact> filterArtifacts(org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
Filters the project's set of artifacts with an ArtifactFilter.

Parameters:
type - the type to retain.
Returns:
a new Set containing the filtered elements.


Copyright © 2006-2007 Mairie de Paris. All Rights Reserved.