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) public class GenerateAPIBuildXMLMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringAPI_BUILD_XML_FILEprivate static java.lang.StringAPI_NATUREprotected org.apache.maven.project.MavenProjectprojectprivate 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.StringcalculateName()private static booleandotProjectContainsApiNature(java.io.File f)voidexecute()private voidgenerateBuildXML()private org.eclipse.tycho.core.BundleProjectgetBundleProject()private org.eclipse.tycho.core.osgitools.project.EclipsePluginProjectgetEclipsePluginProject()private java.lang.StringgetOutputFoldersAsPath()private static booleanisRelevantPackaging(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
-
-
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()
-
-