Tabnine Logo
IO.normalizePath
Code IndexAdd Tabnine to your IDE (free)

How to use
normalizePath
method
in
aQute.lib.io.IO

Best Java code snippets using aQute.lib.io.IO.normalizePath (Showing top 20 results out of 315)

origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public SetLocation file(String file) {
  this.file = (file != null) ? IO.normalizePath(file) : null;
  return this;
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public SetLocation file(String file) {
  this.file = (file != null) ? IO.normalizePath(file) : null;
  return this;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static String absolutePath(Path path) {
  return normalizePath(path.toAbsolutePath());
}
origin: biz.aQute.bnd/biz.aQute.bnd

public static String absolutePath(File file) {
  return normalizePath(file.getAbsolutePath());
}
origin: biz.aQute.bnd/biz.aQute.repository

public static String normalizePath(Path path) {
  return normalizePath(path.toString());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static String absolutePath(File file) {
  return normalizePath(file.getAbsolutePath());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static String normalizePath(Path path) {
  return normalizePath(path.toString());
}
origin: biz.aQute.bnd/biz.aQute.bnd

public static String normalizePath(Path path) {
  return normalizePath(path.toString());
}
origin: biz.aQute.bnd/biz.aQute.repository

public static String absolutePath(File file) {
  return normalizePath(file.getAbsolutePath());
}
origin: biz.aQute.bnd/biz.aQute.repository

public static String absolutePath(Path path) {
  return normalizePath(path.toAbsolutePath());
}
origin: biz.aQute.bnd/biz.aQute.repository

public static String normalizePath(File file) {
  return normalizePath(file.getPath());
}
origin: biz.aQute.bnd/biz.aQute.resolve

public static String normalizePath(Path path) {
  return normalizePath(path.toString());
}
origin: org.osgi/osgi.enroute.configurer.simple.provider

public static String absolutePath(Path path) {
  return normalizePath(path.toAbsolutePath());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static String normalizePath(File file) {
  return normalizePath(file.getPath());
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

public static String normalizePath(Path path) {
  return normalizePath(path.toString());
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Make the file short if it is inside our base directory, otherwise long.
 *
 * @param file
 */
public String normalize(String file) {
  file = IO.normalizePath(file);
  String path = IO.absolutePath(base);
  int len = path.length();
  if (file.startsWith(path) && file.charAt(len) == '/') {
    return file.substring(len + 1);
  }
  return file;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Make the file short if it is inside our base directory, otherwise long.
 *
 * @param file
 */
public String normalize(String file) {
  file = IO.normalizePath(file);
  String path = IO.absolutePath(base);
  int len = path.length();
  if (file.startsWith(path) && file.charAt(len) == '/') {
    return file.substring(len + 1);
  }
  return file;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private URI relativize(File file) {
  if (base == null) {
    return file.toURI();
  }
  Path filePath = file.toPath()
    .toAbsolutePath();
  Path relativePath = base.relativize(filePath);
  // Note that relativePath.toURI() gives the wrong answer for us!
  // We have to do some Windows related mashing here too :(
  URI relativeURI = URI.create(IO.normalizePath(relativePath));
  reporter.trace("Resolving %s relative to %s; Relative Path: %s, URI: %s", filePath, base, relativePath,
    relativeURI);
  return relativeURI;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

  @Override
  public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
    String relativePath = IO.normalizePath(baseDir.relativize(file));
    putResource(relativePath, new FileResource(file, attrs), true);
    return FileVisitResult.CONTINUE;
  }
});
origin: biz.aQute.bnd/biz.aQute.bnd

  @Override
  public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
    String relativePath = IO.normalizePath(baseDir.relativize(file));
    putResource(relativePath, new FileResource(file, attrs), true);
    return FileVisitResult.CONTINUE;
  }
});
aQute.lib.ioIOnormalizePath

Popular methods of IO

  • copy
  • collect
  • getFile
  • deleteWithException
    Deletes the specified path. Folders are recursively deleted. Throws exception if any of the files co
  • reader
  • store
  • writer
  • delete
    Deletes the specified path. Folders are recursively deleted. If file(s) cannot be deleted, no feedba
  • read
  • rename
    Renames from to to replacing the target file if necessary.
  • isSymbolicLink
  • stream
  • isSymbolicLink,
  • stream,
  • traverse,
  • close,
  • createSymbolicLink,
  • createSymbolicLinkOrCopy,
  • createTempFile,
  • decode,
  • mkdirs

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JPanel (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • From CI to AI: The AI layer in your organization
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