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