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

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

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

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

private static File checkCache(File cache) throws Exception {
  IO.mkdirs(cache);
  if (!cache.isDirectory())
    throw new IllegalArgumentException("Cannot create directory for " + cache);
  return cache;
}
origin: biz.aQute.bnd/biz.aQute.repository

private static File checkCache(File cache) throws Exception {
  IO.mkdirs(cache);
  if (!cache.isDirectory())
    throw new IllegalArgumentException("Cannot create directory for " + cache);
  return cache;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public URLCache(File root) {
  this.root = new File(root, "shas");
  try {
    IO.mkdirs(this.root);
  } catch (IOException e) {
    throw Exceptions.duck(e);
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Deletes and creates directories
 */
public static void initialize(File dir) {
  try {
    deleteWithException(dir);
    mkdirs(dir);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

/**
 * Deletes and creates directories
 */
public static void initialize(File dir) {
  try {
    deleteWithException(dir);
    mkdirs(dir);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Deletes and creates directories
 */
public static void initialize(File dir) {
  try {
    deleteWithException(dir);
    mkdirs(dir);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public File getCacheDir(String name) {
  File dir = new File(hosting, name);
  try {
    IO.mkdirs(dir);
  } catch (IOException e) {
    throw Exceptions.duck(e);
  }
  return dir;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public File getCacheDir(String name) {
  File dir = new File(hosting, name);
  try {
    IO.mkdirs(dir);
  } catch (IOException e) {
    throw Exceptions.duck(e);
  }
  return dir;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private void touch(File dir) throws IOException {
  IO.mkdirs(dir);
  IO.store("", new File(dir, GITIGNORE));
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public void update(InputStream inputStream, String etag, long modified) throws Exception {
  IO.mkdirs(this.file.getParentFile());
  IO.copy(inputStream, this.file);
  if (modified > 0) {
    this.file.setLastModified(modified);
  }
  update(etag);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static Path mkdirs(Path dir) throws IOException {
  if (Files.isSymbolicLink(dir)) {
    return mkdirs(Files.readSymbolicLink(dir));
  }
  return Files.createDirectories(dir);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

public static Path mkdirs(Path dir) throws IOException {
  if (Files.isSymbolicLink(dir)) {
    return mkdirs(Files.readSymbolicLink(dir));
  }
  return Files.createDirectories(dir);
}
origin: biz.aQute.bnd/biz.aQute.repository

public static Path mkdirs(Path dir) throws IOException {
  if (Files.isSymbolicLink(dir)) {
    return mkdirs(Files.readSymbolicLink(dir));
  }
  return Files.createDirectories(dir);
}
origin: biz.aQute.bnd/biz.aQute.resolve

public static Path mkdirs(Path dir) throws IOException {
  if (Files.isSymbolicLink(dir)) {
    return mkdirs(Files.readSymbolicLink(dir));
  }
  return Files.createDirectories(dir);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public File put(String bsn, Version version) throws IOException {
  File dir = new File(root, bsn);
  IO.mkdirs(dir);
  File file = new File(dir,
    bsn + "-" + version.getMajor() + "." + version.getMinor() + "." + version.getMicro() + ".jar");
  return file;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public void save(File location) throws IOException {
  if (location.getName()
    .endsWith(".gz"))
    compress = true;
  IO.mkdirs(location.getParentFile());
  File tmp = IO.createTempFile(location.getParentFile(), "index", ".xml");
  try (OutputStream out = IO.outputStream(tmp)) {
    save(out);
  }
  IO.rename(tmp, location);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private File getSrcOutput0() throws IOException {
  File output = getSrcOutput().getAbsoluteFile();
  if (!output.exists()) {
    IO.mkdirs(output);
    getWorkspace().changedFile(output);
  }
  return output;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private void copyResource(File dir, String path, Resource resource) throws Exception {
  File to = IO.getBasedFile(dir, path);
  IO.mkdirs(to.getParentFile());
  IO.copy(resource.openInputStream(), to);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private File getTarget0() throws IOException {
  File target = getTargetDir();
  if (!target.exists()) {
    IO.mkdirs(target);
    getWorkspace().changedFile(target);
  }
  return target;
}
origin: biz.aQute.bnd/biz.aQute.bnd

Releaser(MavenRepository home, Revision revision, MavenBackingRepository repo, Properties context)
  throws Exception {
  this.home = home;
  this.revision = revision;
  this.repo = repo;
  this.context = context;
  this.dir = home.toLocalFile(revision.path);
  IO.delete(this.dir);
  check();
  IO.mkdirs(this.dir);
}
aQute.lib.ioIOmkdirs

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

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Table (org.hibernate.mapping)
    A relational table
  • Github Copilot alternatives
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