Package org.apache.karaf.kar.internal
Class Kar
- java.lang.Object
-
- org.apache.karaf.kar.internal.Kar
-
public class Kar extends Object
Representation of a Karaf Kar archive A Kar archive is a jar file with a special structure that can be used to deploy feature repositories, maven repo contents and resources for the karaf installation. meta-inf/Manifest: Karaf-Feature-Start: (true|false) Controls if the features in the feature repos should be started on deploy Karaf-Feature-Repos: (uri)* If present then only the given feature repo urls are added to karaf if it is not present then the karaf file is scanned for repo files repository/ Everything below this directory is treated as a maven repository. On deploy the contents will be copied to a directory below data. This directory will then be added to the maven repos of pax url maven resource/ Everything below this directory will be copied to the karaf base dir on deploy
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGGERstatic StringMANIFEST_ATTR_KARAF_FEATURE_REPOSstatic StringMANIFEST_ATTR_KARAF_FEATURE_START
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidextract(File repoDir, File resourceDir)Extract a kar from a given URI into a repository dir and resource dir and populate shouldInstallFeatures and featureReposList<URI>getFeatureRepos()StringgetKarName()URIgetKarUri()booleanisShouldInstallFeatures()
-
-
-
Field Detail
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
MANIFEST_ATTR_KARAF_FEATURE_START
public static final String MANIFEST_ATTR_KARAF_FEATURE_START
- See Also:
- Constant Field Values
-
MANIFEST_ATTR_KARAF_FEATURE_REPOS
public static final String MANIFEST_ATTR_KARAF_FEATURE_REPOS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Kar
public Kar(URI karUri)
-
-
Method Detail
-
extract
public void extract(File repoDir, File resourceDir)
Extract a kar from a given URI into a repository dir and resource dir and populate shouldInstallFeatures and featureRepos- Parameters:
repoDir- directory to write the repository contents of the kar toresourceDir- directory to write the resource contents of the kar to
-
getKarName
public String getKarName()
-
getKarUri
public URI getKarUri()
-
isShouldInstallFeatures
public boolean isShouldInstallFeatures()
-
-