Package org.eclipse.tycho.packaging
Class PackageIUMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.packaging.AbstractTychoPackagingMojo
-
- org.eclipse.tycho.packaging.PackageIUMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="package-iu", defaultPhase=PACKAGE, requiresDependencyResolution=RUNTIME) public class PackageIUMojo extends AbstractTychoPackagingMojo
Creates the zip for the IU and attaches it as an artifact
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
artifactContentFolder
Folder containing the files to include in the final zip.private java.io.File
basedir
private IUXmlTransformer
iuTransformer
protected java.io.File
outputDirectory
private org.codehaus.plexus.archiver.zip.ZipArchiver
zipArchiver
-
Fields inherited from class org.eclipse.tycho.packaging.AbstractTychoPackagingMojo
plexus, project, projectHelper, qualifier, session, strictBinIncludes, useDefaultExcludes
-
-
Constructor Summary
Constructors Constructor Description PackageIUMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addArtifactReference(IU iu)
private void
addMavenProperties(IU iu)
private void
addSelfCapability(IU iu)
private java.io.File
createArtifact()
void
execute()
private void
expandVersions(IU iu)
private java.io.File
getPayloadDir()
private boolean
hasArtifactReference(IU iu)
private boolean
hasPayload()
-
Methods inherited from class org.eclipse.tycho.packaging.AbstractTychoPackagingMojo
checkBinIncludesExist, getDependencyArtifacts, getDependencyWalker, getFileSet, getTychoProjectFacet, getTychoProjectFacet
-
-
-
-
Field Detail
-
outputDirectory
@Parameter(property="project.build.directory", required=true, readonly=true) protected java.io.File outputDirectory
-
artifactContentFolder
@Parameter(property="project.build.outputDirectory") private java.lang.String artifactContentFolder
Folder containing the files to include in the final zip.
-
basedir
@Parameter(property="project.basedir", required=true, readonly=true) private java.io.File basedir
-
iuTransformer
@Component private IUXmlTransformer iuTransformer
-
zipArchiver
@Component(role=org.codehaus.plexus.archiver.Archiver.class, hint="zip") private org.codehaus.plexus.archiver.zip.ZipArchiver zipArchiver
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
addMavenProperties
private void addMavenProperties(IU iu)
-
addSelfCapability
private void addSelfCapability(IU iu)
-
addArtifactReference
private void addArtifactReference(IU iu)
-
expandVersions
private void expandVersions(IU iu) throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
-
hasPayload
private boolean hasPayload()
-
createArtifact
private java.io.File createArtifact() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getPayloadDir
private java.io.File getPayloadDir()
-
hasArtifactReference
private boolean hasArtifactReference(IU iu)
-
-