本文整理了Java中com.sun.enterprise.util.io.FileUtils.liquidate()
方法的一些代码示例,展示了FileUtils.liquidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.liquidate()
方法的具体详情如下:
包路径:com.sun.enterprise.util.io.FileUtils
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!