ch.qos.logback.core.util.FileUtil.copy()方法的使用及代码示例

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

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

FileUtil.copy介绍

暂无

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

public void renameByCopying(String src, String target)
    throws RolloverFailure {
 FileUtil fileUtil = new FileUtil(getContext());
 fileUtil.copy(src, target);
 File srcFile = new File(src);
 if (!srcFile.delete()) {
  addWarn("Could not delete " + src);
 }
}

代码示例来源:origin: tony19/logback-android

public void renameByCopying(String src, String target)
    throws RolloverFailure {
 FileUtil fileUtil = new FileUtil(getContext());
 fileUtil.copy(src, target);
 File srcFile = new File(src);
 if (!srcFile.delete()) {
  addWarn("Could not delete " + src);
 }
}

代码示例来源:origin: com.hynnet/logback-core

public void renameByCopying(String src, String target)
    throws RolloverFailure {
 FileUtil fileUtil = new FileUtil(getContext());
 fileUtil.copy(src, target);
 File srcFile = new File(src);
 if (!srcFile.delete()) {
  addWarn("Could not delete " + src);
 }
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public void renameByCopying(String src, String target) throws RolloverFailure {
  FileUtil fileUtil = new FileUtil(getContext());
  fileUtil.copy(src, target);
  File srcFile = new File(src);
  if (!srcFile.delete()) {
    addWarn("Could not delete " + src);
  }
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

public void renameByCopying(String src, String target) throws RolloverFailure {
  FileUtil fileUtil = new FileUtil(getContext());
  fileUtil.copy(src, target);
  File srcFile = new File(src);
  if (!srcFile.delete()) {
    addWarn("Could not delete " + src);
  }
}

代码示例来源:origin: Nextdoor/bender

public void renameByCopying(String src, String target) throws RolloverFailure {
  FileUtil fileUtil = new FileUtil(getContext());
  fileUtil.copy(src, target);
  File srcFile = new File(src);
  if (!srcFile.delete()) {
    addWarn("Could not delete " + src);
  }
}

代码示例来源:origin: tony19/logback-android

@Test
public void basicCopyingWorks() throws IOException {
 String dir = CoreTestConstants.OUTPUT_DIR_PREFIX+"/fu"+diff;
 File dirFile  = new File(dir);
 dirFile.mkdir();
 String src = CoreTestConstants.TEST_INPUT_PREFIX + "compress1.copy";
 String target = CoreTestConstants.OUTPUT_DIR_PREFIX+"/fu"+diff+"/copyingWorks.txt";
 fileUtil.copy(src, target);
 Compare.compare(src, target);
}

相关文章