org.codehaus.tycho.source
Class OsgiSourceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.tycho.source.AbstractSourceJarMojo
org.codehaus.tycho.source.OsgiSourceMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class OsgiSourceMojo
- extends AbstractSourceJarMojo
Goal to create a JAR-package containing all the source files of a osgi
project.
Field Summary |
protected boolean |
useDefaultSourceExcludes
Whether default source excludes for SCM files defined in AbstractScanner.DEFAULTEXCLUDES should be used. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected java.lang.String |
getClassifier()
|
protected org.codehaus.plexus.archiver.FileSet |
getFileSet(java.io.File basedir,
java.util.List<java.lang.String> includes,
java.util.List<java.lang.String> excludes)
|
protected java.util.List |
getResources(org.apache.maven.project.MavenProject p)
|
protected java.util.List<java.lang.String> |
getSources(org.apache.maven.project.MavenProject p)
|
protected boolean |
isRelevantProject(org.apache.maven.project.MavenProject project)
|
protected java.util.List<java.lang.String> |
toFilePattern(java.lang.String pattern)
|
protected void |
updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration)
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useDefaultSourceExcludes
protected boolean useDefaultSourceExcludes
- Whether default source excludes for SCM files defined in
AbstractScanner.DEFAULTEXCLUDES
should be used.
OsgiSourceMojo
public OsgiSourceMojo()
getSources
protected java.util.List<java.lang.String> getSources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
-
- Specified by:
getSources
in class AbstractSourceJarMojo
- Parameters:
p
- not null
- Returns:
- the compile or test sources
- Throws:
org.apache.maven.plugin.MojoExecutionException
getResources
protected java.util.List getResources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
-
- Specified by:
getResources
in class AbstractSourceJarMojo
- Parameters:
p
- not null
- Returns:
- the compile or test resources
- Throws:
org.apache.maven.plugin.MojoExecutionException
toFilePattern
protected java.util.List<java.lang.String> toFilePattern(java.lang.String pattern)
getFileSet
protected org.codehaus.plexus.archiver.FileSet getFileSet(java.io.File basedir,
java.util.List<java.lang.String> includes,
java.util.List<java.lang.String> excludes)
getClassifier
protected java.lang.String getClassifier()
-
- Specified by:
getClassifier
in class AbstractSourceJarMojo
- Returns:
- the wanted classifier, ie
sources
or test-sources
updateSourceManifest
protected void updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration)
- Overrides:
updateSourceManifest
in class AbstractSourceJarMojo
isRelevantProject
protected boolean isRelevantProject(org.apache.maven.project.MavenProject project)
- Specified by:
isRelevantProject
in class AbstractSourceJarMojo
Copyright © 2008-2011. All Rights Reserved.