org.apache.maven.plugin.eclipse.writers
Class EclipseManifestWriter

java.lang.Object
  extended by org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
      extended by org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter
          extended by org.apache.maven.plugin.eclipse.writers.EclipseManifestWriter
All Implemented Interfaces:
EclipseWriter

public class EclipseManifestWriter
extends AbstractEclipseManifestWriter

Create or adapt the manifest files for the RAD6 runtime dependencys. attention these will not be used for the real ear these are just to get the runtime enviorment using the maven dependencies. WARNING: The manifest resources added here will not have the benefit of the dependencies of the project, since that's not provided in the setup() apis, one of the locations from which this writer is used in the RadPlugin.

Author:
Richard van Nieuwenhoven

Field Summary
 
Fields inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter
MANIFEST_MF_FILENAME, META_INF_DIRECTORY
 
Fields inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
config, log
 
Constructor Summary
EclipseManifestWriter()
           
 
Method Summary
static void addManifestResource(Log log, EclipseWriterConfig config)
          make room for a Manifest file. use a generated resource for JARS and for WARS use the manifest in the webapp/META-INF directory.
protected  String getMetaInfBaseDirectory(MavenProject project)
          Search the project for the existing META-INF directory where the manifest should be located.
 
Methods inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter
addDependencyToClassPath, areManifestsEqual, constructManifestClasspath, createNewManifest, orderClasspath, readExistingManifest, shouldNewManifestFileBeWritten, write
 
Methods inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseManifestWriter

public EclipseManifestWriter()
Method Detail

getMetaInfBaseDirectory

protected String getMetaInfBaseDirectory(MavenProject project)
                                  throws MojoExecutionException
Search the project for the existing META-INF directory where the manifest should be located.

Specified by:
getMetaInfBaseDirectory in class AbstractEclipseManifestWriter
Returns:
the absolute path to the META-INF directory
Throws:
MojoExecutionException

addManifestResource

public static void addManifestResource(Log log,
                                       EclipseWriterConfig config)
                                throws MojoExecutionException
make room for a Manifest file. use a generated resource for JARS and for WARS use the manifest in the webapp/META-INF directory.

Throws:
MojoExecutionException


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