2021-01-15 10:31:04 +00:00
|
|
|
From 5dec5bd2d03b0fdfd5ca283d5f7bf88d0b1b3bb8 Mon Sep 17 00:00:00 2001
|
2021-01-08 13:40:12 +00:00
|
|
|
From: Roland Grunberg <rgrunber@redhat.com>
|
|
|
|
Date: Tue, 12 Jun 2012 09:56:38 -0400
|
2021-01-15 10:31:04 +00:00
|
|
|
Subject: [PATCH 1/2] Fix the Tycho build to work on Fedora.
|
2021-01-08 13:40:12 +00:00
|
|
|
|
|
|
|
Minor fixes of limited scope needed to have Tycho building on Fedora.
|
|
|
|
|
|
|
|
Change-Id: Ic8c0514c1fa10ee53580d2654ac6a363ccd66814
|
|
|
|
---
|
|
|
|
.../core/maven/TychoMavenLifecycleParticipant.java | 4 +++-
|
|
|
|
.../tycho/test/AbstractTychoIntegrationTest.java | 11 +++++------
|
|
|
|
2 files changed, 8 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoMavenLifecycleParticipant.java b/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoMavenLifecycleParticipant.java
|
2021-01-15 10:31:04 +00:00
|
|
|
index 3cba466..f733774 100644
|
2021-01-08 13:40:12 +00:00
|
|
|
--- a/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoMavenLifecycleParticipant.java
|
|
|
|
+++ b/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoMavenLifecycleParticipant.java
|
|
|
|
@@ -102,7 +102,9 @@ public class TychoMavenLifecycleParticipant extends AbstractMavenLifecyclePartic
|
|
|
|
}
|
|
|
|
|
|
|
|
private void validate(List<MavenProject> projects) throws MavenExecutionException {
|
|
|
|
- validateConsistentTychoVersion(projects);
|
|
|
|
+ if (System.getProperty("tycho.enableVersionCheck") != null) {
|
|
|
|
+ validateConsistentTychoVersion(projects);
|
|
|
|
+ }
|
|
|
|
validateUniqueBaseDirs(projects);
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java b/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java
|
2021-01-15 10:31:04 +00:00
|
|
|
index 5b8a92d..200030e 100644
|
2021-01-08 13:40:12 +00:00
|
|
|
--- a/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java
|
|
|
|
+++ b/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java
|
|
|
|
@@ -113,12 +113,11 @@ public abstract class AbstractTychoIntegrationTest {
|
|
|
|
verifier.getCliOptions().add(customOptions);
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (System.getProperty(SYSPROP_STATELOCATION) != null) {
|
|
|
|
- verifier.setForkJvm(false);
|
|
|
|
- String m2eresolver = System.getProperty("tychodev-maven.ext.class.path"); // XXX
|
|
|
|
- if (m2eresolver != null) {
|
|
|
|
- verifier.addCliOption("-Dmaven.ext.class.path=" + m2eresolver);
|
|
|
|
- }
|
|
|
|
+ String m2eState = System.getProperty("m2eclipse.workspace.state");
|
|
|
|
+ String m2eResolver = System.getProperty("m2eclipse.workspace.resolver");
|
|
|
|
+
|
|
|
|
+ if (m2eState != null && m2eResolver != null) {
|
|
|
|
+ verifier.getVerifierProperties().put("m2eclipse.workspace.state", m2eState);
|
|
|
|
}
|
|
|
|
|
|
|
|
return verifier;
|
|
|
|
--
|
|
|
|
2.28.0
|
|
|
|
|