Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2019-07-04 16:15:08 +0000
committerMickael Istria2019-07-24 16:38:32 +0000
commit0e451d10a1f60231ad162914117ef5b4c99cc615 (patch)
tree506d1ea93ed8fbe15dd4dafd7e2de638bf1877fa /org.eclipse.m2e.tests.common
parentbbb57fa8098aadfaea7ee1a22fdf8f73483a2e3c (diff)
downloadm2e-core-0e451d10a1f60231ad162914117ef5b4c99cc615.tar.gz
m2e-core-0e451d10a1f60231ad162914117ef5b4c99cc615.tar.xz
m2e-core-0e451d10a1f60231ad162914117ef5b4c99cc615.zip
Bug 548652 - Lifecycle mapping from parent not found
Reproducer test + Workaround MNG-6723 Change-Id: I8f86214cc768953379c9183183301fd688093e33 Signed-off-by: Mickael Istria <mistria@redhat.com> Also-By: Andy Wilkinson <awilkinson@pivotal.io>
Diffstat (limited to 'org.eclipse.m2e.tests.common')
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java
index 31f9cdbe..e5389a31 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java
@@ -288,6 +288,9 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
protected IProject createExisting(String projectName, String projectLocation, boolean addNature)
throws IOException, CoreException {
File dir = new File(workspace.getRoot().getLocation().toFile(), projectName);
+ if(dir.isFile()) {
+ dir = dir.getParentFile();
+ }
copyDir(new File(projectLocation), dir);
final IProject project = workspace.getRoot().getProject(projectName);

Back to the top