Codota Logo
ConfigFileInfo.getLocation
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now