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 |
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 List<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 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 List<String> toFilePattern(String pattern)
getFileSet
protected org.codehaus.plexus.archiver.FileSet getFileSet(File basedir,
List<String> includes,
List<String> excludes)
getClassifier
protected 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.