org.apache.maven.plugin.war.packaging
Class DependenciesAnalysisPackagingTask

java.lang.Object
  extended by org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask
      extended by org.apache.maven.plugin.war.packaging.DependenciesAnalysisPackagingTask
All Implemented Interfaces:
WarPackagingTask

public class DependenciesAnalysisPackagingTask
extends AbstractWarPackagingTask

Analyzes the dependencies of the project with its previous state and update the target directory accordingly.

Version:
$Id: DependenciesAnalysisPackagingTask.html 868453 2013-07-05 11:25:41Z olamy $
Author:
Stephane Nicoll

Field Summary
 
Fields inherited from class org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask
CLASSES_PATH, DEFAULT_INCLUDES, LIB_PATH, META_INF_PATH, WEB_INF_PATH
 
Constructor Summary
DependenciesAnalysisPackagingTask()
           
 
Method Summary
protected  void handleDependency(WarPackagingContext context, Dependency dependency, String notBundledMessage, String warOrZipMessage, String standardMessage, boolean removeFile)
           
protected  void handleDependencyScope(WarPackagingContext context, Dependency dependency, String warOrZipMessage, String standardMessage, boolean removeFile)
           
 void performPackaging(WarPackagingContext context)
          Performs the packaging for the specified task.
 
Methods inherited from class org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask
copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes, getFilesToIncludes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependenciesAnalysisPackagingTask

public DependenciesAnalysisPackagingTask()
Method Detail

performPackaging

public void performPackaging(WarPackagingContext context)
                      throws MojoExecutionException,
                             MojoFailureException
Description copied from interface: WarPackagingTask
Performs the packaging for the specified task.

The task is responsible to update the packaging context, namely with the files that have been copied.

Parameters:
context - the packaging context
Throws:
MojoExecutionException - if an error occurred
MojoFailureException - if the project configuration is invalid

handleDependency

protected void handleDependency(WarPackagingContext context,
                                Dependency dependency,
                                String notBundledMessage,
                                String warOrZipMessage,
                                String standardMessage,
                                boolean removeFile)

handleDependencyScope

protected void handleDependencyScope(WarPackagingContext context,
                                     Dependency dependency,
                                     String warOrZipMessage,
                                     String standardMessage,
                                     boolean removeFile)


Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.