Tabnine Logo
ConfigFileInfo.getLocation
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocation
method
in
org.apache.karaf.features.ConfigFileInfo

Best Java code snippets using org.apache.karaf.features.ConfigFileInfo.getLocation (Showing top 4 results out of 315)

origin: apache/karaf

private void copyFeatureToJar(JarOutputStream jos, Feature feature, Map<URI, Integer> locationMap)
  throws URISyntaxException {
  // add bundles
  for (BundleInfo bundleInfo : feature.getBundles()) {
    URI location = new URI(bundleInfo.getLocation().trim());
    copyResourceToJar(jos, location, locationMap);
  }
  // add config files
  for (ConfigFileInfo configFileInfo : feature.getConfigurationFiles()) {
    URI location = new URI(configFileInfo.getLocation().trim());
    copyResourceToJar(jos, location, locationMap);
  }
  // add bundles and config files in conditionals
  for (Conditional conditional : feature.getConditional()) {
    for (BundleInfo bundleInfo : conditional.getBundles()) {
      URI location = new URI(bundleInfo.getLocation().trim());
      copyResourceToJar(jos, location, locationMap);
    }
    for (ConfigFileInfo configFileInfo : conditional.getConfigurationFiles()) {
      URI location = new URI(configFileInfo.getLocation().trim());
      copyResourceToJar(jos, location, locationMap);
    }
  }
}
origin: org.apache.karaf.tooling/karaf-maven-plugin

/**
 * Read bundles and configuration files in the features file.
 *
 * @return
 * @throws MojoExecutionException
 */
private List<Artifact> readResources(File featuresFile) throws MojoExecutionException {
  List<Artifact> resources = new ArrayList<>();
  try {
    Features features = JaxbUtil.unmarshal(featuresFile.toURI().toASCIIString(), false);
    for (Feature feature : features.getFeature()) {
      for (BundleInfo bundle : feature.getBundles()) {
        if (ignoreDependencyFlag || (!ignoreDependencyFlag && !bundle.isDependency())) {
          resources.add(resourceToArtifact(bundle.getLocation(), false));
        }
      }
      for (ConfigFileInfo configFile : feature.getConfigurationFiles()) {
        resources.add(resourceToArtifact(configFile.getLocation(), false));
      }
    }
    return resources;
  } catch (MojoExecutionException e) {
    throw e;
  } catch (Exception e) {
    throw new MojoExecutionException("Could not interpret features.xml", e);
  }
}
origin: apache/karaf

/**
 * Read bundles and configuration files in the features file.
 *
 * @return
 * @throws MojoExecutionException
 */
private List<Artifact> readResources(File featuresFile) throws MojoExecutionException {
  List<Artifact> resources = new ArrayList<>();
  try {
    Features features = JaxbUtil.unmarshal(featuresFile.toURI().toASCIIString(), false);
    for (Feature feature : features.getFeature()) {
      for (BundleInfo bundle : feature.getBundles()) {
        if (ignoreDependencyFlag || (!ignoreDependencyFlag && !bundle.isDependency())) {
          resources.add(resourceToArtifact(bundle.getLocation(), false));
        }
      }
      for (ConfigFileInfo configFile : feature.getConfigurationFiles()) {
        resources.add(resourceToArtifact(configFile.getLocation(), false));
      }
    }
    return resources;
  } catch (MojoExecutionException e) {
    throw e;
  } catch (Exception e) {
    throw new MojoExecutionException("Could not interpret features.xml", e);
  }
}
origin: apache/karaf

installConfigurationFile(configFile.getLocation(), configFile.getFinalname(),
             configFile.isOverride());
org.apache.karaf.featuresConfigFileInfogetLocation

Popular methods of ConfigFileInfo

  • getFinalname
  • isOverride

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • BoxLayout (javax.swing)
  • JTextField (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now