com.sun.enterprise.util.io.FileUtils.liquidate()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(92)

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

FileUtils.liquidate介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.main.deployment/deployment-autodeploy

private void cleanupAppAndRequest(File f) {
  boolean logFine = deplLogger.isLoggable(Level.FINE);
  /*
   * Clean up the application file or directory.
   */
  if (f.isDirectory()) {
    if (logFine) {
      deplLogger.fine("Deleting autodeployed directory " + f.getAbsolutePath() + " by request");
    }
    FileUtils.liquidate(f);
  } else {
    if (logFine) {
      deplLogger.fine("Deleting autodeployed file " + f.getAbsolutePath() + " by request");
    }
    FileUtils.deleteFile(f);
  }
  
  /*
   * Remove the undeploy request file.
   */
  File requestFile = AutoDeployedFilesManager.appToUndeployRequestFile(f);
  if (logFine) {
    deplLogger.fine("Deleting autodeploy request file " + requestFile.getAbsolutePath());
  }
  FileUtils.deleteFile(requestFile);
}

代码示例来源:origin: org.glassfish.main.admin/server-mgmt

} catch (DomainException de) {
  FileUtils.liquidate(domainDir);
  throw de;
} catch (Exception ex) {
  FileUtils.liquidate(domainDir);
  throw new DomainException(ex);

代码示例来源:origin: org.glassfish.main.admin/server-mgmt

FileUtils.liquidate(repository);

相关文章