Class ApisConfiguration
java.lang.Object
org.apache.sling.feature.maven.mojos.apis.ApisConfiguration
Configuration for creating the api jars.
The configuration can be controlled by a JSON extension:
{ "license-report" : "PATH", "license-header" : "STRING or STRING ARRAY", "license-footer" : "STRING or STRING ARRAY", "license-defaults" : ["PATTERN", "PATTERN"], "javadoc-links" : ["LINK", "LINK"], "javadoc-classpath-removals" : ["LINK", "LINK"], "javadoc-classpath-highest-versions" : ["LINK", "LINK"], "javadoc-classpath-tops" : ["LINK", "LINK"], "javadoc-source-level" : "STRING", "api-version" : "STRING", "bundle-resource-folders" : ["STRING", "STRING"], "bundle-resources" : ["STRING", "STRING"], "region-mapping" : { "REGION" : "MAPPED_NAME" }, "classifier-mapping" : { "CLASSIFIER" : "MAPPED_NAME" }, "manifest-entries" : { "key" : "value" }, "javadoc-extensions" : [ "[[REGION_NAME]:][COMMA_SEPARATED_LIST_OF_ARTIFACT_EXTENSIONS" ] }
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalJavadocExtensions
(String regionName) Get the map for additional javadoc extensions for a regiongetLicenseDefault
(org.apache.sling.feature.ArtifactId id) boolean
boolean
boolean
void
logConfiguration
(org.apache.maven.plugin.logging.Log log) mapApiClassifier
(String classifier) Apply classifier mapping if configuredmapApiRegionName
(String regionName) Apply region name mapping if configuredvoid
setAdditionalJavadocExtensions
(List<String> javadocAdditionalExtensions) Add the additional extensions for javadoc generationvoid
setApiName
(String value) void
setApiVersion
(String apiVersionFromProject) void
setBundleResourceFolders
(String resourceFoldersFromProject) void
setBundleResources
(String[] includeResourcesFromProject) void
setClassifierMappings
(Map<String, String> valuesFromProject) void
Set the dependency repositoriesvoid
setEnabledToggles
(String value) void
setGenerateJavadocForAllApi
(boolean generateJavadocForAllApi) void
setJavadocClasspathHighestVersions
(List<String> javadocClasspathHighestVersionsFromProject) void
setJavadocClasspathRemovals
(List<String> javadocClasspathRemovalsFromProject) void
setJavadocClasspathTops
(List<String> javadocClasspathTopsFromProject) void
setJavadocLinks
(String[] javadocLinksFromProject) void
setJavadocSourceLevel
(String javadocSourceLevelFromProject) void
setLicenseDefaults
(List<String> licenseDefaultsFromProjcect) void
setLicenseReport
(String licenseReportFromProjcect) void
setLicenseReportFooter
(String licenseReportFooterFromProjcect) void
setLicenseReportHeader
(String licenseReportHeaderFromProjcect) void
setManifestEntries
(Properties valuesFromProject) void
setRegionMappings
(Map<String, String> valuesFromProject) void
setUseApiDependencies
(boolean flag) void
setUseApiDependenciesForJavadoc
(boolean flag)
-
Constructor Details
-
ApisConfiguration
public ApisConfiguration(org.apache.sling.feature.Feature feature) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
-
Method Details
-
logConfiguration
public void logConfiguration(org.apache.maven.plugin.logging.Log log) -
getBundleResources
-
getJavadocLinks
-
getJavadocSourceLevel
-
getApiVersion
-
getApiName
-
getBundleResourceFolders
-
getLicenseReport
-
getLicenseDefaults
-
getLicenseReportHeader
-
getManifestEntries
-
getJavadocClasspathRemovals
-
getJavadocClasspathHighestVersions
-
getJavadocClasspathTops
-
mapApiRegionName
Apply region name mapping if configured- Parameters:
regionName
- The region name- Returns:
- The mapped name or the original name
-
mapApiClassifier
Apply classifier mapping if configured- Parameters:
classifier
- The classifier- Returns:
- The mapped classifier or the original classifier
-
getLicenseDefault
-
setLicenseDefaults
public void setLicenseDefaults(List<String> licenseDefaultsFromProjcect) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
setLicenseReport
-
setLicenseReportHeader
-
setJavadocLinks
-
setJavadocClasspathRemovals
-
setJavadocClasspathHighestVersions
-
setJavadocClasspathTops
-
setJavadocSourceLevel
-
setApiVersion
-
setBundleResources
-
setBundleResourceFolders
-
setRegionMappings
-
setClassifierMappings
-
setManifestEntries
-
setEnabledToggles
-
getEnabledToggles
-
setAdditionalJavadocExtensions
Add the additional extensions for javadoc generation- Parameters:
javadocAdditionalExtensions
- A list of strings
-
getAdditionalJavadocExtensions
Get the map for additional javadoc extensions for a region- Parameters:
regionName
- the region- Returns:
- The set of extension names, might be empty
-
isUseApiDependencies
public boolean isUseApiDependencies()- Returns:
- the useApiDependencies
-
setUseApiDependencies
public void setUseApiDependencies(boolean flag) - Parameters:
flag
- The value for useApiDependencies
-
isUseApiDependenciesForJavadoc
public boolean isUseApiDependenciesForJavadoc()- Returns:
- the useApiDependenciesForJavadoc
-
setUseApiDependenciesForJavadoc
public void setUseApiDependenciesForJavadoc(boolean flag) - Parameters:
flag
- The value for useApiDependenciesForJavadoc
-
isGenerateJavadocForAllApi
public boolean isGenerateJavadocForAllApi()- Returns:
- the generateJavadocForAllApi
-
setGenerateJavadocForAllApi
public void setGenerateJavadocForAllApi(boolean generateJavadocForAllApi) - Parameters:
generateJavadocForAllApi
- the generateJavadocForAllApi to set
-
getDependencyRepositories
-
setDependencyRepositories
Set the dependency repositories- Parameters:
list
- Comma separated list ornull
-
setApiName
-