Package org.eclipse.tycho.packaging
Class AbstractTychoPackagingMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.packaging.AbstractTychoPackagingMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
PackageFeatureMojo
,PackageIUMojo
,PackagePluginMojo
,ProductExportMojo
,UpdateSiteMojo
public abstract class AbstractTychoPackagingMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.PlexusContainer
plexus
protected org.apache.maven.project.MavenProject
project
protected org.apache.maven.project.MavenProjectHelper
projectHelper
protected String
qualifier
Build qualifier.protected org.apache.maven.execution.MavenSession
session
protected boolean
strictBinIncludes
If set totrue
(the default), missing build.properties bin.includes will cause build failure.protected boolean
useDefaultExcludes
-
Constructor Summary
Constructors Constructor Description AbstractTychoPackagingMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkBinIncludesExist(BuildProperties buildProperties, String... ignoredIncludes)
protected DependencyArtifacts
getDependencyArtifacts()
protected ArtifactDependencyWalker
getDependencyWalker()
protected org.codehaus.plexus.archiver.FileSet
getFileSet(File basedir, List<String> includes, List<String> excludes)
protected TychoProject
getTychoProjectFacet()
protected TychoProject
getTychoProjectFacet(String packaging)
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
session
@Parameter(property="session", readonly=true) protected org.apache.maven.execution.MavenSession session
-
project
@Parameter(property="project", readonly=true) protected org.apache.maven.project.MavenProject project
-
useDefaultExcludes
@Parameter(defaultValue="true") protected boolean useDefaultExcludes
-
qualifier
@Parameter(property="buildQualifier") protected String qualifier
Build qualifier. Recommended way to set this parameter is using build-qualifier goal.
-
strictBinIncludes
@Parameter(defaultValue="true") protected boolean strictBinIncludes
If set totrue
(the default), missing build.properties bin.includes will cause build failure. If set tofalse
, missing build.properties bin.includes will be reported as warnings but the build will not fail.
-
plexus
@Component protected org.codehaus.plexus.PlexusContainer plexus
-
projectHelper
@Component protected org.apache.maven.project.MavenProjectHelper projectHelper
-
-
Method Detail
-
getFileSet
protected org.codehaus.plexus.archiver.FileSet getFileSet(File basedir, List<String> includes, List<String> excludes)
- Returns:
- a
FileSet
with the given includes and excludes and the configured default excludes. An empty list of includes leads to an empty file set.
-
getDependencyWalker
protected ArtifactDependencyWalker getDependencyWalker()
-
getTychoProjectFacet
protected TychoProject getTychoProjectFacet()
-
getTychoProjectFacet
protected TychoProject getTychoProjectFacet(String packaging)
-
getDependencyArtifacts
protected DependencyArtifacts getDependencyArtifacts()
-
checkBinIncludesExist
protected void checkBinIncludesExist(BuildProperties buildProperties, String... ignoredIncludes) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-