2013-02-28 19:02:25 +00:00
|
|
|
From afb7aaef05da393028d1bfddf8eb472e6ba6a893 Mon Sep 17 00:00:00 2001
|
2012-06-12 15:06:31 +00:00
|
|
|
From: Roland Grunberg <rgrunber@redhat.com>
|
|
|
|
Date: Tue, 12 Jun 2012 09:56:38 -0400
|
2013-02-25 19:15:25 +00:00
|
|
|
Subject: [PATCH] Fix the Tycho build to work on Fedora.
|
2012-06-12 15:06:31 +00:00
|
|
|
|
|
|
|
Minor fixes of limited scope needed to have Tycho building on Fedora.
|
|
|
|
|
2012-08-07 14:44:21 +00:00
|
|
|
Remove org.eclipse.equinox.concurrent until present in Fedora Eclipse.
|
|
|
|
|
2012-09-24 21:06:48 +00:00
|
|
|
Tycho upstream currently depends upon 0.15.0 when building
|
|
|
|
0.16.0-SNAPSHOT, which doesn't have reactor plugin version checking. In
|
|
|
|
Fedora we depend on the previously built version which has that version
|
|
|
|
checking. We must keep previous build version strings different to avoid
|
|
|
|
a cyclic dependency, but doing so causes the version checking to fail,
|
|
|
|
so we must provide a way to disable it. (skipTychoVersionCheck)
|
|
|
|
|
2013-02-25 19:15:25 +00:00
|
|
|
As of Eclipse Kepler, the bundle 'org.junit4' is no longer provided.
|
|
|
|
Packages requiring JUnit 4 must use proper versioning on 'org.junit'.
|
|
|
|
|
2013-02-28 19:02:25 +00:00
|
|
|
Update to using Jetty 9 API.
|
|
|
|
|
2012-06-12 15:06:31 +00:00
|
|
|
Change-Id: Ic8c0514c1fa10ee53580d2654ac6a363ccd66814
|
|
|
|
---
|
2012-08-24 14:37:58 +00:00
|
|
|
pom.xml | 5 -----
|
|
|
|
tycho-artifactcomparator/pom.xml | 4 ++--
|
2013-02-25 19:15:25 +00:00
|
|
|
.../META-INF/MANIFEST.MF | 2 +-
|
|
|
|
.../META-INF/MANIFEST.MF | 2 +-
|
2012-10-17 16:06:40 +00:00
|
|
|
.../eclipse/tycho/p2/target/ee/CustomEEResolutionHandler.java | 2 +-
|
2013-02-28 19:02:25 +00:00
|
|
|
.../src/main/java/org/eclipse/tycho/test/util/HttpServer.java | 5 +++--
|
2012-08-24 14:37:58 +00:00
|
|
|
.../tycho-bundles-external/tycho-bundles-external.product | 1 -
|
|
|
|
.../tycho-standalone-p2-director/p2 Director.product | 1 -
|
|
|
|
tycho-compiler-jdt/pom.xml | 4 ----
|
2012-09-24 21:06:48 +00:00
|
|
|
.../tycho/core/maven/TychoMavenLifecycleParticipant.java | 4 +++-
|
2012-08-24 14:37:58 +00:00
|
|
|
.../org/eclipse/tycho/test/AbstractTychoIntegrationTest.java | 11 +++++------
|
|
|
|
.../org/eclipse/tycho/testing/EmptyLifecycleExecutor.java | 8 ++++++++
|
2013-02-28 19:02:25 +00:00
|
|
|
12 files changed, 24 insertions(+), 25 deletions(-)
|
2012-06-12 15:06:31 +00:00
|
|
|
|
|
|
|
diff --git a/pom.xml b/pom.xml
|
2013-02-25 19:15:25 +00:00
|
|
|
index 5776b0e..41e8bdf 100644
|
2012-06-12 15:06:31 +00:00
|
|
|
--- a/pom.xml
|
|
|
|
+++ b/pom.xml
|
2012-10-17 16:06:40 +00:00
|
|
|
@@ -226,11 +226,6 @@ $CMD -DpomFile=org.eclipse.jdt.compiler.apt.pom \
|
2012-06-12 15:06:31 +00:00
|
|
|
<version>${jdtVersion}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
- <groupId>org.eclipse.tycho</groupId>
|
|
|
|
- <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
|
|
|
|
- <version>${jdtAptVersion}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
<groupId>org.apache.maven.surefire</groupId>
|
|
|
|
<artifactId>surefire-booter</artifactId>
|
|
|
|
<version>2.10</version>
|
2012-08-07 14:44:21 +00:00
|
|
|
diff --git a/tycho-artifactcomparator/pom.xml b/tycho-artifactcomparator/pom.xml
|
2013-02-25 19:15:25 +00:00
|
|
|
index 27e15a9..5fa695c 100644
|
2012-08-07 14:44:21 +00:00
|
|
|
--- a/tycho-artifactcomparator/pom.xml
|
|
|
|
+++ b/tycho-artifactcomparator/pom.xml
|
2012-08-10 17:22:13 +00:00
|
|
|
@@ -24,7 +24,7 @@
|
2012-08-07 14:44:21 +00:00
|
|
|
<dependency>
|
|
|
|
<!-- CQ https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6591 -->
|
2012-08-10 17:22:13 +00:00
|
|
|
<groupId>org.ow2.asm</groupId>
|
2012-08-07 14:44:21 +00:00
|
|
|
- <artifactId>asm-debug-all</artifactId>
|
|
|
|
+ <artifactId>asm-all</artifactId>
|
|
|
|
<version>4.0</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
@@ -54,4 +54,4 @@
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
-</project>
|
|
|
|
\ No newline at end of file
|
|
|
|
+</project>
|
2013-02-25 19:15:25 +00:00
|
|
|
diff --git a/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF b/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF
|
|
|
|
index e65eb5b..fc38d0c 100644
|
|
|
|
--- a/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF
|
|
|
|
+++ b/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF
|
|
|
|
@@ -6,7 +6,7 @@ Bundle-Version: 0.17.0.qualifier
|
|
|
|
Bundle-Vendor: %providerName
|
|
|
|
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
|
|
|
Fragment-Host: org.eclipse.tycho.p2.maven.repository
|
|
|
|
-Require-Bundle: org.junit4;bundle-version="4.8.1",
|
|
|
|
+Require-Bundle: org.junit;bundle-version="4.8.1",
|
|
|
|
org.eclipse.equinox.p2.publisher;bundle-version="1.2.0",
|
|
|
|
org.eclipse.equinox.ds;bundle-version="1.4.0",
|
|
|
|
org.eclipse.tycho.p2.resolver.impl
|
|
|
|
diff --git a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl.test/META-INF/MANIFEST.MF b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl.test/META-INF/MANIFEST.MF
|
|
|
|
index 80be496..0af92d6 100644
|
|
|
|
--- a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl.test/META-INF/MANIFEST.MF
|
|
|
|
+++ b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl.test/META-INF/MANIFEST.MF
|
|
|
|
@@ -5,7 +5,7 @@ Bundle-SymbolicName: org.eclipse.tycho.p2.resolver.impl.test;singleton:=true
|
|
|
|
Bundle-Version: 0.17.0.qualifier
|
|
|
|
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
|
|
|
Fragment-Host: org.eclipse.tycho.p2.resolver.impl
|
|
|
|
-Require-Bundle: org.junit4,
|
|
|
|
+Require-Bundle: org.junit,
|
|
|
|
org.eclipse.equinox.ds,
|
|
|
|
org.eclipse.equinox.p2.transport.ecf
|
|
|
|
Bundle-ActivationPolicy: lazy
|
2012-10-17 16:06:40 +00:00
|
|
|
diff --git a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/ee/CustomEEResolutionHandler.java b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/ee/CustomEEResolutionHandler.java
|
|
|
|
index 87c9e11..927cea5 100644
|
|
|
|
--- a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/ee/CustomEEResolutionHandler.java
|
|
|
|
+++ b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/ee/CustomEEResolutionHandler.java
|
|
|
|
@@ -59,7 +59,7 @@ class CustomEEResolutionHandler extends ExecutionEnvironmentResolutionHandler {
|
|
|
|
String name = capability.getName();
|
|
|
|
String version = capability.getVersion().toString();
|
|
|
|
|
|
|
|
- if (JREAction.NAMESPACE_OSGI_EE.equals(namespace)) {
|
|
|
|
+ if ("osgi.ee".equals(namespace)) {
|
|
|
|
result.add(new SystemCapability(Type.OSGI_EE, name, version));
|
|
|
|
} else if (PublisherHelper.CAPABILITY_NS_JAVA_PACKAGE.equals(namespace)) {
|
|
|
|
result.add(new SystemCapability(Type.JAVA_PACKAGE, name, version));
|
2013-02-28 19:02:25 +00:00
|
|
|
diff --git a/tycho-bundles/org.eclipse.tycho.test.utils/src/main/java/org/eclipse/tycho/test/util/HttpServer.java b/tycho-bundles/org.eclipse.tycho.test.utils/src/main/java/org/eclipse/tycho/test/util/HttpServer.java
|
|
|
|
index 1a27b00..eb110dc 100644
|
|
|
|
--- a/tycho-bundles/org.eclipse.tycho.test.utils/src/main/java/org/eclipse/tycho/test/util/HttpServer.java
|
|
|
|
+++ b/tycho-bundles/org.eclipse.tycho.test.utils/src/main/java/org/eclipse/tycho/test/util/HttpServer.java
|
|
|
|
@@ -20,9 +20,10 @@ import java.util.Random;
|
|
|
|
import org.eclipse.jetty.security.ConstraintMapping;
|
|
|
|
import org.eclipse.jetty.security.ConstraintSecurityHandler;
|
|
|
|
import org.eclipse.jetty.security.HashLoginService;
|
|
|
|
+import org.eclipse.jetty.server.AbstractNetworkConnector;
|
|
|
|
import org.eclipse.jetty.server.Connector;
|
|
|
|
import org.eclipse.jetty.server.Server;
|
|
|
|
-import org.eclipse.jetty.server.bio.SocketConnector;
|
|
|
|
+import org.eclipse.jetty.server.ServerConnector;
|
|
|
|
import org.eclipse.jetty.servlet.ServletContextHandler;
|
|
|
|
import org.eclipse.jetty.servlet.ServletHolder;
|
|
|
|
import org.eclipse.jetty.util.security.Constraint;
|
|
|
|
@@ -68,7 +69,7 @@ public class HttpServer {
|
|
|
|
|
|
|
|
private static HttpServer doStartServer(String username, String password, int port) throws Exception {
|
|
|
|
Server server = new Server();
|
|
|
|
- Connector connector = new SocketConnector();
|
|
|
|
+ AbstractNetworkConnector connector = new ServerConnector(server);
|
|
|
|
connector.setPort(port);
|
|
|
|
server.addConnector(connector);
|
|
|
|
|
2012-08-07 14:44:21 +00:00
|
|
|
diff --git a/tycho-bundles/tycho-bundles-external/tycho-bundles-external.product b/tycho-bundles/tycho-bundles-external/tycho-bundles-external.product
|
2013-02-25 19:15:25 +00:00
|
|
|
index dea801e..4733ad0 100644
|
2012-08-07 14:44:21 +00:00
|
|
|
--- a/tycho-bundles/tycho-bundles-external/tycho-bundles-external.product
|
|
|
|
+++ b/tycho-bundles/tycho-bundles-external/tycho-bundles-external.product
|
|
|
|
@@ -41,7 +41,6 @@
|
|
|
|
<plugin id="org.eclipse.ecf.ssl" fragment="true"/>
|
|
|
|
<plugin id="org.eclipse.equinox.app"/>
|
|
|
|
<plugin id="org.eclipse.equinox.common"/>
|
|
|
|
- <plugin id="org.eclipse.equinox.concurrent"/>
|
|
|
|
<plugin id="org.eclipse.equinox.ds"/>
|
|
|
|
<plugin id="org.eclipse.equinox.frameworkadmin"/>
|
|
|
|
<plugin id="org.eclipse.equinox.frameworkadmin.equinox"/>
|
|
|
|
diff --git a/tycho-bundles/tycho-standalone-p2-director/p2 Director.product b/tycho-bundles/tycho-standalone-p2-director/p2 Director.product
|
|
|
|
index dd80b5e..797b4ba 100644
|
|
|
|
--- a/tycho-bundles/tycho-standalone-p2-director/p2 Director.product
|
|
|
|
+++ b/tycho-bundles/tycho-standalone-p2-director/p2 Director.product
|
|
|
|
@@ -41,7 +41,6 @@
|
|
|
|
<plugin id="org.eclipse.ecf.ssl" fragment="true"/>
|
|
|
|
<plugin id="org.eclipse.equinox.app"/>
|
|
|
|
<plugin id="org.eclipse.equinox.common"/>
|
|
|
|
- <plugin id="org.eclipse.equinox.concurrent"/>
|
|
|
|
<plugin id="org.eclipse.equinox.ds"/>
|
|
|
|
<plugin id="org.eclipse.equinox.frameworkadmin"/>
|
|
|
|
<plugin id="org.eclipse.equinox.frameworkadmin.equinox"/>
|
2012-06-12 15:06:31 +00:00
|
|
|
diff --git a/tycho-compiler-jdt/pom.xml b/tycho-compiler-jdt/pom.xml
|
2013-02-25 19:15:25 +00:00
|
|
|
index 9872fd7..8a12fde 100644
|
2012-06-12 15:06:31 +00:00
|
|
|
--- a/tycho-compiler-jdt/pom.xml
|
|
|
|
+++ b/tycho-compiler-jdt/pom.xml
|
|
|
|
@@ -38,10 +38,6 @@
|
|
|
|
<artifactId>org.eclipse.jdt.core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
- <groupId>org.eclipse.tycho</groupId>
|
|
|
|
- <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
|
|
<artifactId>plexus-compiler-api</artifactId>
|
|
|
|
</dependency>
|
2012-09-24 21:06:48 +00:00
|
|
|
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
|
|
|
|
index 3efb896..cccb6ff 100644
|
|
|
|
--- 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
|
|
|
|
@@ -84,7 +84,9 @@ public class TychoMavenLifecycleParticipant extends AbstractMavenLifecyclePartic
|
|
|
|
}
|
|
|
|
|
|
|
|
private void validate(List<MavenProject> projects) throws MavenExecutionException {
|
|
|
|
- validateConsistentTychoVersion(projects);
|
|
|
|
+ if (System.getProperty("skipTychoVersionCheck") == null) {
|
|
|
|
+ validateConsistentTychoVersion(projects);
|
|
|
|
+ }
|
|
|
|
validateUniqueBaseDirs(projects);
|
|
|
|
}
|
|
|
|
|
2012-08-07 14:44:21 +00:00
|
|
|
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
|
|
|
|
index 5c4dcb3..9830aee 100644
|
|
|
|
--- 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
|
|
|
|
@@ -97,12 +97,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;
|
2012-06-12 15:06:31 +00:00
|
|
|
diff --git a/tycho-testing-harness/src/main/java/org/eclipse/tycho/testing/EmptyLifecycleExecutor.java b/tycho-testing-harness/src/main/java/org/eclipse/tycho/testing/EmptyLifecycleExecutor.java
|
|
|
|
index a9d80d3..3ddbe9c 100644
|
|
|
|
--- a/tycho-testing-harness/src/main/java/org/eclipse/tycho/testing/EmptyLifecycleExecutor.java
|
|
|
|
+++ b/tycho-testing-harness/src/main/java/org/eclipse/tycho/testing/EmptyLifecycleExecutor.java
|
|
|
|
@@ -37,6 +37,14 @@ public class EmptyLifecycleExecutor implements LifecycleExecutor {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ public MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean bool, String... tasks)
|
|
|
|
+ throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
|
|
|
|
+ MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
|
|
|
|
+ PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException,
|
|
|
|
+ PluginVersionResolutionException {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, String... tasks)
|
|
|
|
throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
|
|
|
|
MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
|
|
|
|
--
|
2012-10-17 16:06:40 +00:00
|
|
|
1.7.11.7
|
2012-06-12 15:06:31 +00:00
|
|
|
|