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

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

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

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

public String _basedir(@SuppressWarnings("unused") String args[]) {
  if (base == null)
    throw new IllegalArgumentException("No base dir set");
  return IO.absolutePath(base);
}
origin: biz.aQute.bnd/biz.aQute.bnd

public String _basedir(@SuppressWarnings("unused") String args[]) {
  if (base == null)
    throw new IllegalArgumentException("No base dir set");
  return IO.absolutePath(base);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private String getJavaExecutable() {
  String javaHome = System.getProperty("java.home");
  if (javaHome == null) {
    return "java";
  }
  File java = new File(javaHome, "bin/java");
  return IO.absolutePath(java);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public String _p_output(String args[]) throws Exception {
  if (args.length != 1)
    throw new IllegalArgumentException("${output} should not have arguments");
  return IO.absolutePath(getOutput());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private void traverse(List<String> paths, File item) {
  if (item.isDirectory()) {
    for (File sub : item.listFiles()) {
      traverse(paths, sub);
    }
  } else if (item.isFile())
    paths.add(IO.absolutePath(item));
  else
    paths.add(item.getName());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Return the name of the properties file
 */
public String _thisfile(String[] args) {
  if (propertiesFile == null) {
    error("${thisfile} executed on a processor without a properties file");
    return null;
  }
  return IO.absolutePath(propertiesFile);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public String getLocation() {
  return IO.absolutePath(workspace.getBase());
}
origin: biz.aQute.bnd/biz.aQute.bnd

public String _p_output(String args[]) throws Exception {
  if (args.length != 1)
    throw new IllegalArgumentException("${output} should not have arguments");
  return IO.absolutePath(getOutput());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public String _propertiesdir(String[] args) {
  if (args.length > 1) {
    error("propertiesdir does not take arguments");
    return null;
  }
  File pf = getPropertiesFile();
  if (pf == null)
    return "";
  return IO.absolutePath(pf.getParentFile());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public String _osfile(String args[]) {
  verifyCommand(args, _fileHelp, null, 3, 3);
  File base = new File(args[1]);
  File f = Processor.getFile(base, args[2]);
  return IO.absolutePath(f);
}
origin: biz.aQute.bnd/biz.aQute.bnd

public String _osfile(String args[]) {
  verifyCommand(args, _fileHelp, null, 3, 3);
  File base = new File(args[1]);
  File f = Processor.getFile(base, args[2]);
  return IO.absolutePath(f);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * This methods attempts to turn any jar into a valid jar. If this is a
 * bundle with manifest, a manifest is added based on defaults. If it is a
 * bundle, but not r4, we try to add the r4 headers.
 *
 * @throws Exception
 */
public Jar getValidJar(File f) throws Exception {
  Jar jar = new Jar(f);
  return getValidJar(jar, IO.absolutePath(f));
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void setBase(File file) {
  super.setBase(file);
  getProperties().put("project.dir", IO.absolutePath(getBase()));
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public void setBase(File file) {
  super.setBase(file);
  getProperties().put("project.dir", IO.absolutePath(getBase()));
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void close() throws IOException {
  if (inited) {
    exec(close, IO.absolutePath(getRoot()));
    if (hasIndex)
      index.close();
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

  public void set(SetLocation sl) {
    sl.file(IO.absolutePath(file));
    sl.line(line);
    sl.length(length);
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Must show the file name or the error formatted as a file name
 */
@Override
public String toString() {
  if (getError() != null)
    return "/error/" + getError();
  return IO.absolutePath(getFile());
}
origin: biz.aQute.bnd/biz.aQute.bnd

  public void set(SetLocation sl) {
    sl.file(IO.absolutePath(file));
    sl.line(line);
    sl.length(length);
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public void close() throws IOException {
  if (inited) {
    exec(close, IO.absolutePath(getRoot()));
    if (hasIndex)
      index.close();
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Must show the file name or the error formatted as a file name
 */
@Override
public String toString() {
  if (getError() != null)
    return "/error/" + getError();
  return IO.absolutePath(getFile());
}
aQute.lib.ioIOabsolutePath

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,
  • normalizePath

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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