Class ApisJarContext


  • public class ApisJarContext
    extends Object
    Context for creating the api jars
    • Constructor Detail

      • ApisJarContext

        public ApisJarContext​(File mainDir,
                              org.apache.sling.feature.Feature feature)
                       throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
    • Method Detail

      • getFeatureId

        public org.apache.sling.feature.ArtifactId getFeatureId()
      • getFeature

        public org.apache.sling.feature.Feature getFeature()
      • getDeflatedBinDir

        public File getDeflatedBinDir()
      • getDeflatedSourcesDir

        public File getDeflatedSourcesDir()
      • getCheckedOutSourcesDir

        public File getCheckedOutSourcesDir()
      • addJavadocClasspath

        public void addJavadocClasspath​(org.apache.sling.feature.ArtifactId artifactId,
                                        String classpath)
      • getJavadocClasspath

        public Map<org.apache.sling.feature.ArtifactId,​String> getJavadocClasspath()
      • getJavadocDir

        public File getJavadocDir()
      • setJavadocDir

        public void setJavadocDir​(File javadocDir)
      • getPackagesWithoutJavaClasses

        public Set<String> getPackagesWithoutJavaClasses()
      • getPackagesWithoutSources

        public Set<String> getPackagesWithoutSources()
      • getModelCache

        public Map<org.apache.sling.feature.ArtifactId,​org.apache.maven.model.Model> getModelCache()
      • findDependencyArtifact

        public boolean findDependencyArtifact​(org.apache.maven.plugin.logging.Log log,
                                              ApisJarContext.ArtifactInfo info)
                                       throws org.apache.maven.plugin.MojoExecutionException
        Check if all dependency artifacts can be found
        Parameters:
        log - The logger
        info - The artifact info
        Returns:
        true if all artifacts are publically available
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If an incorrect configuration is found