Class 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 Detail

      • LOGGER

        public static final org.slf4j.Logger LOGGER
    • 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 to
        resourceDir - directory to write the resource contents of the kar to
      • getKarName

        public String getKarName()
      • getKarUri

        public URI getKarUri()
      • isShouldInstallFeatures

        public boolean isShouldInstallFeatures()
      • getFeatureRepos

        public List<URI> getFeatureRepos()