org.apache.maven.plugin.eclipse.writers
Class EclipseManifestWriter
java.lang.Object
org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
org.apache.maven.plugin.eclipse.writers.EclipseManifestWriter
- All Implemented Interfaces:
- EclipseWriter
public class EclipseManifestWriter
- extends AbstractEclipseWriter
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
Method Summary |
static void |
addManifestResource(org.apache.maven.plugin.logging.Log log,
EclipseWriterConfig config)
make room for a Manifest file. |
String |
getMetaInfBaseDirectory(org.apache.maven.project.MavenProject project)
Search the project for the existing META-INF directory where the manifest should be located. |
void |
write()
Write the manifest files use an existing one it it exists (it will be overwritten!! in a war use webapp/META-INF
else use the generated rad6 sourcefolder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EclipseManifestWriter
public EclipseManifestWriter()
getMetaInfBaseDirectory
public String getMetaInfBaseDirectory(org.apache.maven.project.MavenProject project)
throws org.apache.maven.plugin.MojoExecutionException
- Search the project for the existing META-INF directory where the manifest should be located.
- Returns:
- the absolute path to the META-INF directory
- Throws:
org.apache.maven.plugin.MojoExecutionException
write
public void write()
throws org.apache.maven.plugin.MojoExecutionException
- Write the manifest files use an existing one it it exists (it will be overwritten!! in a war use webapp/META-INF
else use the generated rad6 sourcefolder
- Parameters:
sourceDirs
- all eclipse source directoryslocalRepository
- the local reposetorybuildOutputDirectory
- build output directory (target)
- Throws:
org.apache.maven.plugin.MojoExecutionException
- when writing the config files was not possible- See Also:
AbstractWtpResourceWriter#write(EclipseSourceDir[], ArtifactRepository, File)
addManifestResource
public static void addManifestResource(org.apache.maven.plugin.logging.Log log,
EclipseWriterConfig config)
throws org.apache.maven.plugin.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:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.