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
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
protected org.apache.maven.project.MavenProject
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
private static boolean
void
execute()
private void
private org.eclipse.tycho.core.BundleProject
private org.eclipse.tycho.core.osgitools.project.EclipsePluginProject
private String
private static boolean
isRelevantPackaging
(String packaging) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
API_BUILD_XML_FILE
- See Also:
-
API_NATURE
- See Also:
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject project -
projectTypes
-
-
Constructor Details
-
GenerateAPIBuildXMLMojo
public GenerateAPIBuildXMLMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isRelevantPackaging
-
dotProjectContainsApiNature
-
generateBuildXML
private void generateBuildXML() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getOutputFoldersAsPath
- 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
-