Class ApisJarContext

java.lang.Object
org.apache.sling.feature.maven.mojos.apis.ApisJarContext

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

    • ApisJarContext

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

    • getConfig

      public ApisConfiguration getConfig()
    • 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()
    • addArtifactInfo

      public ApisJarContext.ArtifactInfo addArtifactInfo(org.apache.sling.feature.Artifact artifact)
    • getArtifactInfo

      public ApisJarContext.ArtifactInfo getArtifactInfo(org.apache.sling.feature.ArtifactId artifactId)
    • getArtifactInfos

      public List<ApisJarContext.ArtifactInfo> getArtifactInfos()
    • getModelCache

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

      public Collection<ApisJarContext.ArtifactInfo> getArtifactInfos(String regionName, boolean omitDependencyArtifacts)
    • 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