com.intellij.openapi.util.io.FileUtil.copyDirContent()方法的使用及代码示例

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

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

FileUtil.copyDirContent介绍

暂无

代码示例

代码示例来源:origin: KronicDeth/intellij-elixir

public void testMix() throws IOException {
  CompilerOptions compilerOptions = Extension.getOrCreateExtension(myModel.getProject()).getOptions();
  compilerOptions.useMixCompiler = true;
  FileUtil.copyDirContent(new File("testData/mix_compiled"), getOrCreateProjectDir());
  addModule(
      "mix_compiled",
      new String[]{getOrCreateProjectDir().getAbsolutePath()},
      getAbsolutePath("_build/dev"),
      getAbsolutePath("_build/test"),
      elixirSdk,
      ModuleType.INSTANCE
  );
  rebuildAll();
  String absolutePath = getAbsolutePath("_build/dev/lib/mix_compiled/ebin/");
  assertNotNull(FileUtil.findFileInProvidedPath(absolutePath, "Elixir.MixCompiled.beam"));
}

代码示例来源:origin: zalando/intellij-swagger

@NotNull
private File copySwaggerUiToTempDir() throws IOException, URISyntaxException {
 final ClassLoader classLoader = getClass().getClassLoader();
 final File file = new File(classLoader.getResource(SWAGGER_UI_FOLDER_NAME).toURI());
 final File tempSwaggerUiDir = FileUtil.createTempDirectory(SWAGGER_UI_FOLDER_NAME, "", true);
 FileUtil.copyDirContent(file, tempSwaggerUiDir);
 return tempSwaggerUiDir;
}

代码示例来源:origin: Haehnchen/idea-php-symfony2-plugin

try {
  File fromDir = new File(baseDir.getPath() + "/" + SymfonyInstallerUtil.PROJECT_SUB_FOLDER);
  FileUtil.copyDirContent(fromDir, new File(baseDir.getPath()));
  FileUtil.delete(fromDir);
} catch (IOException e) {

相关文章