From 630fc14767c94f2b25e52147ba31dd73b34e7d80 Mon Sep 17 00:00:00 2001 From: Pavel Fatin Date: Fri, 20 Sep 2013 15:09:40 +0400 Subject: [PATCH] External system: use URLs in compile output paths --- .../service/project/manage/ModuleDataService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/manage/ModuleDataService.java b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/manage/ModuleDataService.java index 7b02d53b54f8..57e123b7a114 100644 --- a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/manage/ModuleDataService.java +++ b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/manage/ModuleDataService.java @@ -18,6 +18,7 @@ import com.intellij.openapi.module.ModuleManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.roots.*; import com.intellij.openapi.vfs.LocalFileSystem; +import com.intellij.openapi.vfs.VfsUtilCore; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.util.Alarm; import com.intellij.util.containers.ContainerUtilRt; @@ -197,12 +198,12 @@ public class ModuleDataService implements ProjectDataService try { String compileOutputPath = data.getCompileOutputPath(ExternalSystemSourceType.SOURCE); if (compileOutputPath != null) { - extension.setCompilerOutputPath(compileOutputPath); + extension.setCompilerOutputPath(VfsUtilCore.pathToUrl(compileOutputPath)); } String testCompileOutputPath = data.getCompileOutputPath(ExternalSystemSourceType.TEST); if (testCompileOutputPath != null) { - extension.setCompilerOutputPathForTests(testCompileOutputPath); + extension.setCompilerOutputPathForTests(VfsUtilCore.pathToUrl(testCompileOutputPath)); } extension.inheritCompilerOutputPath(data.isInheritProjectCompileOutputPath());