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 Details

    • API_BUILD_XML_FILE

      private static final String API_BUILD_XML_FILE
      See Also:
    • API_NATURE

      private static final String API_NATURE
      See Also:
    • 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 Map<String,org.eclipse.tycho.core.TychoProject> 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

      private static boolean isRelevantPackaging(String packaging)
    • dotProjectContainsApiNature

      private static boolean dotProjectContainsApiNature(File f)
    • generateBuildXML

      private void generateBuildXML() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getOutputFoldersAsPath

      private 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 String calculateName()