Package org.eclipse.cbi.mojo
Class GenerateAPIBuildXMLMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.cbi.mojo.GenerateAPIBuildXMLMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate-api-build-xml", defaultPhase=GENERATE_SOURCES, threadSafe=true) public class GenerateAPIBuildXMLMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
API_BUILD_XML_FILE
private static java.lang.String
API_NATURE
private org.sonatype.plexus.build.incremental.BuildContext
buildContext
protected org.apache.maven.project.MavenProject
project
private java.util.Map<java.lang.String,org.eclipse.tycho.core.TychoProject>
projectTypes
-
Constructor Summary
Constructors Constructor Description GenerateAPIBuildXMLMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
calculateName()
private static boolean
dotProjectContainsApiNature(java.io.File f)
void
execute()
private void
generateBuildXML()
private org.eclipse.tycho.core.BundleProject
getBundleProject()
private org.eclipse.tycho.core.osgitools.project.EclipsePluginProject
getEclipsePluginProject()
private java.lang.String
getOutputFoldersAsPath()
private static boolean
isRelevantPackaging(java.lang.String packaging)
-
-
-
Field Detail
-
API_BUILD_XML_FILE
private static final java.lang.String API_BUILD_XML_FILE
- See Also:
- Constant Field Values
-
API_NATURE
private static final java.lang.String API_NATURE
- See Also:
- Constant Field Values
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
-
projectTypes
@Component(role=org.eclipse.tycho.core.TychoProject.class) private java.util.Map<java.lang.String,org.eclipse.tycho.core.TychoProject> projectTypes
-
buildContext
@Component private org.sonatype.plexus.build.incremental.BuildContext buildContext
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isRelevantPackaging
private static boolean isRelevantPackaging(java.lang.String packaging)
-
dotProjectContainsApiNature
private static boolean dotProjectContainsApiNature(java.io.File f)
-
generateBuildXML
private void generateBuildXML() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getOutputFoldersAsPath
private java.lang.String getOutputFoldersAsPath() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getEclipsePluginProject
private org.eclipse.tycho.core.osgitools.project.EclipsePluginProject getEclipsePluginProject() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getBundleProject
private org.eclipse.tycho.core.BundleProject getBundleProject() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
calculateName
private java.lang.String calculateName()
-
-