Class CustomBundleMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.extras.custombundle.CustomBundleMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="custom-bundle") public class CustomBundleMojo extends org.apache.maven.plugin.AbstractMojoBuilds OSGi bundle
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.archiver.MavenArchiveConfigurationarchiveprivate java.io.FilebundleLocationLocation of OSGi bundle, must have META-INF/MANIFEST.MF bundle manifest file.private java.lang.StringclassifierClassifier of attached artifact.private java.lang.String[]excludesFile patterns to exclude from bundleLocation.private java.util.List<org.codehaus.plexus.archiver.util.DefaultFileSet>fileSetsAdditional files to be included in the generated bundle.private java.lang.String[]includesFile patterns to include from bundleLocation.private org.codehaus.plexus.archiver.jar.JarArchiverjarArchiverprivate org.apache.maven.project.MavenProjectprojectprivate org.apache.maven.project.MavenProjectHelperprojectHelperprivate org.apache.maven.execution.MavenSessionsession
-
Constructor Summary
Constructors Constructor Description CustomBundleMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected java.io.FilegetOutputJarFile()private java.io.FileupdateManifest()
-
-
-
Field Detail
-
bundleLocation
@Parameter(required=true) private java.io.File bundleLocation
Location of OSGi bundle, must have META-INF/MANIFEST.MF bundle manifest file.
-
classifier
@Parameter(required=true) private java.lang.String classifier
Classifier of attached artifact.
-
includes
@Parameter private java.lang.String[] includes
File patterns to include from bundleLocation. Include everything by default.
-
excludes
@Parameter private java.lang.String[] excludes
File patterns to exclude from bundleLocation.
-
fileSets
@Parameter(required=true) private java.util.List<org.codehaus.plexus.archiver.util.DefaultFileSet> fileSets
Additional files to be included in the generated bundle.
-
project
@Parameter(property="project") private org.apache.maven.project.MavenProject project
-
session
@Parameter(property="session", readonly=true) private org.apache.maven.execution.MavenSession session
-
archive
@Parameter private org.apache.maven.archiver.MavenArchiveConfiguration archive
-
jarArchiver
@Component(role=org.codehaus.plexus.archiver.Archiver.class, hint="jar") private org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
-
projectHelper
@Component private org.apache.maven.project.MavenProjectHelper projectHelper
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getOutputJarFile
protected java.io.File getOutputJarFile()
-
updateManifest
private java.io.File updateManifest() throws java.io.FileNotFoundException, java.io.IOException, org.apache.maven.plugin.MojoExecutionException- Throws:
java.io.FileNotFoundExceptionjava.io.IOExceptionorg.apache.maven.plugin.MojoExecutionException
-
-