Class 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  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Field Detail

      • API_BUILD_XML_FILE

        private static final java.lang.String API_BUILD_XML_FILE
        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
    • Constructor Detail

      • GenerateAPIBuildXMLMojo

        public GenerateAPIBuildXMLMojo()
    • 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()