Tabnine Logo
DeployerUtils.extractNameVersionType
Code IndexAdd Tabnine to your IDE (free)

How to use
extractNameVersionType
method
in
org.apache.karaf.util.DeployerUtils

Best Java code snippets using org.apache.karaf.util.DeployerUtils.extractNameVersionType (Showing top 7 results out of 315)

origin: apache/karaf

public URL transform(URL artifact) throws Exception {
  try
  {
    String path = artifact.getPath();
    String name = path.substring( path.lastIndexOf('/') + 1);
    String[] nv = DeployerUtils.extractNameVersionType( name );
    return new URL("wrap", null, artifact.toExternalForm() + "$Bundle-SymbolicName=" + nv[0] + "&Bundle-Version=" + nv[1]);
  } catch (Exception e) {
    return new URL("wrap", null, artifact.toExternalForm());
  }
}
origin: org.apache.karaf.deployer/org.apache.karaf.deployer.wrap

public URL transform(URL artifact) throws Exception {
  try
  {
    String path = artifact.getPath();
    String name = path.substring( path.lastIndexOf('/') + 1);
    String[] nv = DeployerUtils.extractNameVersionType( name );
    return new URL("wrap", null, artifact.toExternalForm() + "$Bundle-SymbolicName=" + nv[0] + "&Bundle-Version=" + nv[1]);
  } catch (Exception e) {
    return new URL("wrap", null, artifact.toExternalForm());
  }
}
origin: apache/karaf

  name = name.substring(idx + 1);
String[] str = DeployerUtils.extractNameVersionType(name);
origin: org.apache.karaf.deployer/org.apache.karaf.deployer.features

  name = name.substring(idx + 1);
String[] str = DeployerUtils.extractNameVersionType(name);
origin: apache/karaf

  name = name.substring(idx + 1);
String[] str = DeployerUtils.extractNameVersionType(name);
origin: apache/karaf

  name = name.substring(idx + 1);
String[] str = DeployerUtils.extractNameVersionType(name);
origin: org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint

  name = name.substring(idx + 1);
String[] str = DeployerUtils.extractNameVersionType(name);
org.apache.karaf.utilDeployerUtilsextractNameVersionType

Javadoc

Heuristic to compute the name and version of a file given it's name on disk

Popular methods of DeployerUtils

  • cleanupModifier

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JOptionPane (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top PhpStorm 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