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 AbstractTychoPackagingMojoCreates the zip for the IU and attaches it as an artifact
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringartifactContentFolderFolder containing the files to include in the final zip.private java.io.Filebasedirprivate IUXmlTransformeriuTransformerprotected java.io.FileoutputDirectoryprivate org.codehaus.plexus.archiver.zip.ZipArchiverzipArchiver-
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 voidaddArtifactReference(IU iu)private voidaddMavenProperties(IU iu)private voidaddSelfCapability(IU iu)private java.io.FilecreateArtifact()voidexecute()private voidexpandVersions(IU iu)private java.io.FilegetPayloadDir()private booleanhasArtifactReference(IU iu)private booleanhasPayload()-
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.MojoExecutionExceptionorg.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)
-
-