org.apache.maven.plugin.eclipse.writers.rad
Class RadManifestWriter
java.lang.Object
org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter
org.apache.maven.plugin.eclipse.writers.rad.RadManifestWriter
- All Implemented Interfaces:
- EclipseWriter
- public class RadManifestWriter
- 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
Method Summary |
protected java.lang.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()
If the existing manifest file located in getMetaInfBaseDirectory()
already has a correct MANIFEST_VERSION and CLASS_PATH value then do nothing.
Otherwise generate a NEW (i.e the old one is overwritten) which only contains
values for MANIFEST_VERSION and CLASS_PATH, all other previous entries are not kept. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RadManifestWriter
public RadManifestWriter()
getMetaInfBaseDirectory
protected java.lang.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.
- Specified by:
getMetaInfBaseDirectory
in class AbstractEclipseManifestWriter
- Returns:
- the apsolute path to the META-INF directory
- Throws:
org.apache.maven.plugin.MojoExecutionException
write
public void write()
throws org.apache.maven.plugin.MojoExecutionException
- If the existing manifest file located in
getMetaInfBaseDirectory()
already has a correct MANIFEST_VERSION and CLASS_PATH value then do nothing.
Otherwise generate a NEW (i.e the old one is overwritten) which only contains
values for MANIFEST_VERSION and CLASS_PATH, all other previous entries are not kept.
- Specified by:
write
in interface EclipseWriter
- Overrides:
write
in class AbstractEclipseManifestWriter
- Throws:
org.apache.maven.plugin.MojoExecutionException
- when writing the config files was not possible- See Also:
AbstractWtpResourceWriter#write(EclipseSourceDir[], ArtifactRepository, File)
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.