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

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

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

FileUtil.isAbsolutePlatformIndependent介绍

暂无

代码示例

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

if (FileUtil.isAbsolutePlatformIndependent(fileName)) {
 virtualFile = ApplicationManager.getApplication().isUnitTestMode()
        ? TempFileSystem.getInstance().refreshAndFindFileByPath(fileName)

代码示例来源:origin: ballerina-platform/ballerina-lang

if (FileUtil.isAbsolutePlatformIndependent(fileName)) {
  virtualFile = ApplicationManager.getApplication().isUnitTestMode()
      ? TempFileSystem.getInstance().refreshAndFindFileByPath(fileName)

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

String directoryPath = FileUtil.isAbsolutePlatformIndependent(myDirectoryPath)
            ? myDirectoryPath
            : FileUtil.join(getWorkingDirectory(), myDirectoryPath);

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Override
 public Optional<String> getAppEngineWebXmlDirectoryPath(@NotNull Module module) {
  if (!GradleProjectService.getInstance().isGradleModule(module)) {
   return Optional.empty();
  }

  AppEngineStandardGradleModuleComponent gradleModuleComponent =
    AppEngineStandardGradleModuleComponent.getInstance(module);
  String gradleWebAppDir = gradleModuleComponent.getWebAppDir().orElse(null);

  if (gradleWebAppDir == null) {
   gradleWebAppDir = GRADLE_WEBAPP_DEFAULT_DIR;
  }

  if (!FileUtil.isAbsolutePlatformIndependent(gradleWebAppDir)
    && gradleModuleComponent.getGradleModuleDir().isPresent()) {
   gradleWebAppDir = gradleModuleComponent.gradleModuleDir + '/' + gradleWebAppDir;
  }

  return Optional.of(gradleWebAppDir + "/WEB-INF");
 }
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

if (!FileUtil.isAbsolutePlatformIndependent(warSourceDirectory)) {
 warSourceDirectory = mavenProject.getDirectory() + '/' + warSourceDirectory;

相关文章