Blame SOURCES/0001-Fix-the-Tycho-build-to-work-on-Fedora.patch

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