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

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

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

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

/**
 * Deletes the specified path. Folders are recursively deleted.<br>
 * If file(s) cannot be deleted, no feedback is provided (fail silently).
 *
 * @param path path to be deleted
 */
public static void delete(Path path) {
  try {
    deleteWithException(path);
  } catch (IOException e) {
    // Ignore a failed delete
  }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

/**
 * Deletes the specified path. Folders are recursively deleted.<br>
 * If file(s) cannot be deleted, no feedback is provided (fail silently).
 *
 * @param path path to be deleted
 */
public static void delete(Path path) {
  try {
    deleteWithException(path);
  } catch (IOException e) {
    // Ignore a failed delete
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Deletes the specified file. Folders are recursively deleted.<br>
 * Throws exception if any of the files could not be deleted.
 *
 * @param file file to be deleted
 * @throws IOException if the file (or contents of a folder) could not be
 *             deleted
 */
public static void deleteWithException(File file) throws IOException {
  deleteWithException(file.toPath());
}
origin: biz.aQute.bnd/biz.aQute.repository

/**
 * Deletes the specified file. Folders are recursively deleted.<br>
 * Throws exception if any of the files could not be deleted.
 *
 * @param file file to be deleted
 * @throws IOException if the file (or contents of a folder) could not be
 *             deleted
 */
public static void deleteWithException(File file) throws IOException {
  deleteWithException(file.toPath());
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

/**
 * Deletes the specified file. Folders are recursively deleted.<br>
 * Throws exception if any of the files could not be deleted.
 *
 * @param file file to be deleted
 * @throws IOException if the file (or contents of a folder) could not be
 *             deleted
 */
public static void deleteWithException(File file) throws IOException {
  deleteWithException(file.toPath());
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Deletes the specified file. Folders are recursively deleted.<br>
 * Throws exception if any of the files could not be deleted.
 *
 * @param file file to be deleted
 * @throws IOException if the file (or contents of a folder) could not be
 *             deleted
 */
public static void deleteWithException(File file) throws IOException {
  deleteWithException(file.toPath());
}
origin: biz.aQute.bnd/biz.aQute.resolve

/**
 * Deletes the specified file. Folders are recursively deleted.<br>
 * Throws exception if any of the files could not be deleted.
 *
 * @param file file to be deleted
 * @throws IOException if the file (or contents of a folder) could not be
 *             deleted
 */
public static void deleteWithException(File file) throws IOException {
  deleteWithException(file.toPath());
}
origin: org.osgi/osgi.enroute.configurer.simple.provider

/**
 * Deletes the specified file. Folders are recursively deleted.<br>
 * Throws exception if any of the files could not be deleted.
 *
 * @param file file to be deleted
 * @throws IOException if the file (or contents of a folder) could not be
 *             deleted
 */
public static void deleteWithException(File file) throws IOException {
  deleteWithException(file.toPath());
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

/**
 * Deletes the specified file. Folders are recursively deleted.<br>
 * Throws exception if any of the files could not be deleted.
 *
 * @param file file to be deleted
 * @throws IOException if the file (or contents of a folder) could not be
 *             deleted
 */
public static void deleteWithException(File file) throws IOException {
  deleteWithException(file.toPath());
}
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.bndlib

/**
 * 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.resolve

/**
 * 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.framework.extension

/**
 * 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 boolean delete(String path) throws Exception {
  File dest = getFile(path);
  IO.deleteWithException(dest);
  return true;
}
origin: biz.aQute.bnd/biz.aQute.repository

/**
 * 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.repository

@Override
public boolean delete(String path) throws Exception {
  File dest = getFile(path);
  IO.deleteWithException(dest);
  return true;
}
origin: org.osgi/osgi.enroute.configurer.simple.provider

/**
 * 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.bndlib

public boolean clear(URI uri) throws Exception {
  File f = getCacheFileFor(uri);
  boolean exists = f.isFile();
  if (f != null && exists) {
    IO.deleteWithException(f);
  }
  f = getCacheInfoFileFor(uri);
  if (f != null && f.isFile()) {
    IO.deleteWithException(f);
  }
  infos.remove(f);
  return exists;
}
origin: biz.aQute.bnd/biz.aQute.bnd

public boolean clear(URI uri) throws Exception {
  File f = getCacheFileFor(uri);
  boolean exists = f.isFile();
  if (f != null && exists) {
    IO.deleteWithException(f);
  }
  f = getCacheInfoFileFor(uri);
  if (f != null && f.isFile()) {
    IO.deleteWithException(f);
  }
  infos.remove(f);
  return exists;
}
aQute.lib.ioIOdeleteWithException

Javadoc

Deletes the specified file. Folders are recursively deleted.
Throws exception if any of the files could not be deleted.

Popular methods of IO

  • copy
  • collect
  • getFile
  • 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
  • traverse
  • stream,
  • traverse,
  • close,
  • createSymbolicLink,
  • createSymbolicLinkOrCopy,
  • createTempFile,
  • decode,
  • mkdirs,
  • normalizePath

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JLabel (javax.swing)
  • 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