org.apache.tools.ant.taskdefs.Delete.setDir()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(172)

本文整理了Java中org.apache.tools.ant.taskdefs.Delete.setDir()方法的一些代码示例,展示了Delete.setDir()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Delete.setDir()方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Delete
类名称:Delete
方法名:setDir

Delete.setDir介绍

[英]Set the directory from which files are to be deleted
[中]设置要从中删除文件的目录

代码示例

代码示例来源:origin: org.metaeffekt.core/ae-inventory-processor

private void removeFolder(String folder, String file) {
  final File dir = new File(new File(folder), file);
  Delete delete = new Delete();
  delete.setDir(dir);
  delete.setIncludeEmptyDirs(true);
  delete.execute();
  System.err.println("Deleting " + file);
}

代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless

/**
 * Delete a directory and all subdirectories
 */
public static void recursivelyDeleteDir(File customProfileDir) {
  if (customProfileDir == null || !customProfileDir.exists()) {
    return;
  }
  Delete delete = new Delete();
  delete.setProject(new Project());
  delete.setDir(customProfileDir);
  delete.setFailOnError(true);
  delete.execute();
}

代码示例来源:origin: org.testatoo.openqa/selenium-server

/**
 * Delete a directory and all subdirectories
 */
public static void recursivelyDeleteDir(File customProfileDir) {
  if (customProfileDir == null || !customProfileDir.exists()) {
    return;
  }
  Delete delete = new Delete();
  delete.setProject(new Project());
  delete.setDir(customProfileDir);
  delete.setFailOnError(true);
  delete.execute();
}

代码示例来源:origin: org.metaeffekt.dcc/dcc-commons

delete.setProject(getAntProject());
delete.setIncludes(FILE_PATTERN_CERT);
delete.setDir(targetChainDir);
delete.execute();

代码示例来源:origin: org.ow2.jonas/bootstrap-ant

delete.setDir(this.destDir);
delete.execute();

代码示例来源:origin: org.metaeffekt.core/ae-inventory-processor

delete.setDir(scanDirectory);
delete.execute();

相关文章