com.sun.enterprise.module.maven
Class Packager

java.lang.Object
  extended by com.sun.enterprise.module.maven.Packager

public class Packager
extends Object

Prepares manifest entries in MavenArchiveConfiguration.

This class is moved outside PackageMojo and doesn't rely on Mojo resource injection to allow other plugins to reuse this capability without hitting http://jira.codehaus.org/browse/MNG-2789.

Author:
Kohsuke Kawaguchi

Constructor Summary
Packager()
           
 
Method Summary
 Map<String,String> configureManifest(org.apache.maven.project.MavenProject pom, org.apache.maven.archiver.MavenArchiveConfiguration archive, File classesDirectory)
           
 void writeManifest(org.apache.maven.project.MavenProject pom, File classesDirectory)
          Creates META-INF/MANIFEST.MF with all the entries needed for HK2 runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Packager

public Packager()
Method Detail

writeManifest

public void writeManifest(org.apache.maven.project.MavenProject pom,
                          File classesDirectory)
                   throws IOException
Creates META-INF/MANIFEST.MF with all the entries needed for HK2 runtime.

Parameters:
pom - The project from which we are creating manifest.
Throws:
IOException

configureManifest

public Map<String,String> configureManifest(org.apache.maven.project.MavenProject pom,
                                            org.apache.maven.archiver.MavenArchiveConfiguration archive,
                                            File classesDirectory)
                                     throws IOException
Throws:
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.