aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Youngstrom2012-07-06 19:15:14 (EDT)
committerFred Bricon2012-07-25 05:35:58 (EDT)
commit19462411f1cf58d6b1246463946d694201763449 (patch)
treefc86f7e2b038a2eca9d9196edbc447ea9f001bf6
parent4aad48892f60f2ae6ffd12d25d10fa65b0686983 (diff)
downloadm2e-core-19462411f1cf58d6b1246463946d694201763449.zip
m2e-core-19462411f1cf58d6b1246463946d694201763449.tar.gz
m2e-core-19462411f1cf58d6b1246463946d694201763449.tar.bz2
[PATCH] Only renaming base projects not any sub projects. 384510
Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java5
1 files changed, 4 insertions, 1 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 af0ee73..d5a8ea8 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
@@ -133,7 +133,10 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
String pomName = modulePath + "/" + IMavenConstants.POM_FILE_NAME; //$NON-NLS-1$
MavenProjectInfo projectInfo = newMavenProjectInfo(pomName, pomFile, model, parentInfo);
- projectInfo.setBasedirRename(getBasedirRename(projectInfo));
+ //We only want to optionally rename the base directory not any sub directory
+ if(parentInfo == null) {
+ projectInfo.setBasedirRename(getBasedirRename(projectInfo));
+ }
Map<String, Set<String>> modules = new LinkedHashMap<String, Set<String>>();
for(String module : model.getModules()) {