aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dordet2012-01-28 18:09:20 (EST)
committerIgor Fedorenko2012-01-28 18:09:20 (EST)
commit0a41027c0f88a7f11d03fe0bdf47ac057b85fa2c (patch)
tree2b7192ef7af88c794835cc05056851aa85f528fe
parent817a00d6e1710ceefb6ed825387cceefe9072337 (diff)
downloadm2e-core-0a41027c0f88a7f11d03fe0bdf47ac057b85fa2c.zip
m2e-core-0a41027c0f88a7f11d03fe0bdf47ac057b85fa2c.tar.gz
m2e-core-0a41027c0f88a7f11d03fe0bdf47ac057b85fa2c.tar.bz2
341038 rename temporary checkout folders outside of workspace root
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
index 51f78c9..af0ee73 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
@@ -189,8 +189,8 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
}
private int getBasedirRename(MavenProjectInfo mavenProjectInfo) throws IOException {
- File cannonical = mavenProjectInfo.getPomFile().getParentFile().getParentFile().getCanonicalFile();
- if (basedirRemameRequired && cannonical.equals(workspaceRoot.getCanonicalFile())) {
+
+ if (basedirRemameRequired) {
return MavenProjectInfo.RENAME_REQUIRED;
}
return MavenProjectInfo.RENAME_NO;