canonicalize module paths when reading the data for compile server (fixes GroovyCompi...
authorpeter <peter@jetbrains.com>
Tue, 17 Jan 2012 16:22:18 +0000 (17:22 +0100)
committerpeter <peter@jetbrains.com>
Tue, 17 Jan 2012 16:23:32 +0000 (17:23 +0100)
jps/model/src/org/jetbrains/jps/Module.groovy

index bf21d1ce0a1a52ef3c674382b6516c5a27c1c06c..c0b79374e1e4315fa3737c410ffdefb9443b127d 100644 (file)
@@ -1,5 +1,6 @@
 package org.jetbrains.jps
 
+import com.intellij.openapi.util.io.FileUtil
 import org.jetbrains.jps.idea.Facet
 
 /**
@@ -58,19 +59,19 @@ class Module extends LazyInitializeableObject implements ClasspathItem {//}, Com
       }
 
       meta.content = {Object[] arg ->
-        arg.each { contentRoots << it.toString() }
+        arg.each { contentRoots << FileUtil.toCanonicalPath(it) }
       }
 
       meta.src = {Object[] arg ->
-        arg.each { sourceRoots << it.toString() }
+        arg.each { sourceRoots << FileUtil.toCanonicalPath(it) }
       }
 
       meta.testSrc = {Object[] arg ->
-        arg.each { testRoots << it.toString() }
+        arg.each { testRoots << FileUtil.toCanonicalPath(it) }
       }
 
       meta.exclude = {Object[] arg ->
-        arg.each { excludes << it.toString() }
+        arg.each { excludes << FileUtil.toCanonicalPath(it) }
       }
 
       initializer.delegate = meta