ShrinkWrap Resolver Maven Archive Implementation 2.0.0-cr-1

org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging
Class WarPackagingProcessor

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.AbstractCompilingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>
      extended by org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.WarPackagingProcessor
All Implemented Interfaces:
PackagingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>

public class WarPackagingProcessor
extends AbstractCompilingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>
implements PackagingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>

Packaging processor for Maven projects of WAR packaging type

Author:
Karel Piwko

Field Summary
static String MAVEN_WAR_PLUGIN_KEY
           
 
Fields inherited from class org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.AbstractCompilingProcessor
session
 
Constructor Summary
WarPackagingProcessor()
           
 
Method Summary
 WarPackagingProcessor configure(org.jboss.shrinkwrap.api.Archive<?> archive, MavenWorkingSession session)
           
protected  org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> createFilter(WarPluginConfiguration configuration)
           
protected  String[] getFilesToIncludes(File baseDir, String[] includes, String[] excludes)
          Returns the file to copy.
 org.jboss.shrinkwrap.api.spec.WebArchive getResultingArchive()
           
 boolean handles(PackagingType packagingType)
           
 WarPackagingProcessor importBuildOutput(MavenResolutionStrategy strategy)
           
 
Methods inherited from class org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.AbstractCompilingProcessor
compile, configure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAVEN_WAR_PLUGIN_KEY

public static final String MAVEN_WAR_PLUGIN_KEY
See Also:
Constant Field Values
Constructor Detail

WarPackagingProcessor

public WarPackagingProcessor()
Method Detail

handles

public boolean handles(PackagingType packagingType)
Specified by:
handles in interface PackagingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>

configure

public WarPackagingProcessor configure(org.jboss.shrinkwrap.api.Archive<?> archive,
                                       MavenWorkingSession session)
Specified by:
configure in interface PackagingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>

getResultingArchive

public org.jboss.shrinkwrap.api.spec.WebArchive getResultingArchive()
Specified by:
getResultingArchive in interface PackagingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>

importBuildOutput

public WarPackagingProcessor importBuildOutput(MavenResolutionStrategy strategy)
                                        throws IllegalArgumentException,
                                               UnsupportedOperationException
Specified by:
importBuildOutput in interface PackagingProcessor<org.jboss.shrinkwrap.api.spec.WebArchive>
Throws:
IllegalArgumentException
UnsupportedOperationException

createFilter

protected org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> createFilter(WarPluginConfiguration configuration)

getFilesToIncludes

protected String[] getFilesToIncludes(File baseDir,
                                      String[] includes,
                                      String[] excludes)
Returns the file to copy. If the includes are null or empty, the default includes are used.

Parameters:
baseDir - the base directory to start from
includes - the includes
excludes - the excludes
Returns:
the files to copy

ShrinkWrap Resolver Maven Archive Implementation 2.0.0-cr-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.