Esempio n. 1
0
  public RelativePath getDestPath() {
    RelativePath parentPath;
    if (parentSpec == null) {
      parentPath = new RelativePath(false);
    } else {
      parentPath = parentSpec.getDestPath();
    }
    if (destDir == null) {
      return parentPath;
    }

    String path = destDir.toString();
    if (path.startsWith("/") || path.startsWith(File.separator)) {
      return RelativePath.parse(false, path);
    }

    return RelativePath.parse(false, parentPath, path);
  }