Blame SOURCES/eclipse-fix-tests.patch

d433ea
--- eclipse.pde.ui/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/target/MinimalTargetDefinitionPersistenceTests.java.orig	2016-04-19 20:07:36.947017206 +0100
d433ea
+++ eclipse.pde.ui/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/target/MinimalTargetDefinitionPersistenceTests.java	2016-04-19 20:09:59.166077383 +0100
040604
@@ -80,7 +80,7 @@
d433ea
 	 */
d433ea
 	protected IPath getJdtFeatureLocation() {
d433ea
 		IPath path = new Path(TargetPlatform.getDefaultLocation());
d433ea
-		path = path.append("features");
d433ea
+		path = path.append("droplets").append("eclipse-jdt").append("features");
d433ea
 		File dir = path.toFile();
d433ea
 		assertTrue("Missing features directory", dir.exists() && !dir.isFile());
d433ea
 		String[] files = dir.list();
d433ea
diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java
d433ea
index f1f38f0..f9111e6 100644
d433ea
--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java
d433ea
+++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java
040604
@@ -246,7 +246,7 @@
d433ea
 					if (parent != null) {
d433ea
 						File[] children = parent.listFiles((FileFilter) pathname -> {
d433ea
 							String name = pathname.getName();
d433ea
-							return name.startsWith("eclipse-platform-");
d433ea
+							return name.startsWith("eclipse-SDK-");
d433ea
 						});
d433ea
 						if (children != null && children.length == 1)
d433ea
 							file = children[0];
d433ea
diff --git eclipse.jdt.core/org.eclipse.jdt.apt.pluggable.tests/build.properties eclipse.jdt.core/org.eclipse.jdt.apt.pluggable.tests/build.properties
d433ea
index 376daa6..1742a8d 100644
d433ea
--- eclipse.jdt.core/org.eclipse.jdt.apt.pluggable.tests/build.properties
d433ea
+++ eclipse.jdt.core/org.eclipse.jdt.apt.pluggable.tests/build.properties
d433ea
@@ -17,6 +17,7 @@ bin.includes = .,\
d433ea
                resources/,\
d433ea
                lib/
d433ea
 src.includes = about.html
d433ea
-jars.compile.order = .
d433ea
+jars.compile.order = .,\
d433ea
+                     lib/annotations.jar
d433ea
 source.. = src/
d433ea
-output.. = bin/
d433ea
+source.lib/annotations.jar = src/
d433ea
diff --git eclipse.jdt.core/org.eclipse.jdt.apt.tests/build.properties eclipse.jdt.core/org.eclipse.jdt.apt.tests/build.properties
d433ea
index f34ae40..0f9877d 100644
d433ea
--- eclipse.jdt.core/org.eclipse.jdt.apt.tests/build.properties
d433ea
+++ eclipse.jdt.core/org.eclipse.jdt.apt.tests/build.properties
d433ea
@@ -24,4 +24,6 @@ bin.includes = plugin.xml,\
d433ea
                plugin.properties
d433ea
 src.includes = about.html
d433ea
 src.excludes = src-resources/
d433ea
-jars.compile.order = aptext.jar,apt.jar,.
d433ea
+jars.compile.order = aptext.jar,apt.jar,.,\
d433ea
+                     resources/question.jar
d433ea
+source.resources/question.jar = src-resources/
d433ea
diff --git eclipse.jdt.core/org.eclipse.jdt.compiler.apt.tests/build.properties eclipse.jdt.core/org.eclipse.jdt.compiler.apt.tests/build.properties
d433ea
index bc8963d..fbe4da3 100644
d433ea
--- eclipse.jdt.core/org.eclipse.jdt.compiler.apt.tests/build.properties
d433ea
+++ eclipse.jdt.core/org.eclipse.jdt.compiler.apt.tests/build.properties
040604
@@ -28,3 +28,6 @@
d433ea
 src.includes = about.html
d433ea
 compilerArg=-proc:none
040604
 jars.extra.classpath = lib/java13api.jar
d433ea
+source.lib/apttestprocessors.jar = processors/
d433ea
+jars.compile.order = lib/apttestprocessors.jar,\
d433ea
+                     .
d433ea
--- eclipse.platform/ant/org.eclipse.ant.tests.ui/build.properties.orig	2016-03-24 14:25:47.076289150 +0000
d433ea
+++ eclipse.platform/ant/org.eclipse.ant.tests.ui/build.properties	2016-03-24 14:26:39.528660802 +0000
040604
@@ -28,6 +28,8 @@
d433ea
                         Ant Tests/
d433ea
 						
d433ea
 source.lib/antUITestsSupport.jar = test support/
d433ea
-jars.compile.order=anttestsui.jar,lib/antUITestsSupport.jar
d433ea
+source.testbuildfiles/antUITestsSupport.jar = test support/
d433ea
+jars.compile.order=anttestsui.jar,lib/antUITestsSupport.jar,testbuildfiles/antUITestsSupport.jar
d433ea
 output.lib/antUITestsSupport.jar = test_support_bin/
d433ea
+output.testbuildfiles/antUITestsSupport.jar = test_support_bin/
d433ea
 output.anttestsui.jar = bin/
d433ea
--- eclipse.jdt.ui/org.eclipse.jdt.ui.tests/build.properties.orig	2016-03-25 15:09:40.557786910 +0000
d433ea
+++ eclipse.jdt.ui/org.eclipse.jdt.ui.tests/build.properties	2016-03-25 15:12:08.476059326 +0000
040604
@@ -25,3 +25,5 @@
d433ea
             leaks/,\
d433ea
             performance/
d433ea
 javacWarnings..=-raw,-unchecked
d433ea
+source.testresources/nls.jar = nls/
d433ea
+jars.compile.order = .,testresources/nls.jar
d433ea
--- /dev/null	1970-01-01 01:00:00.000000000 +0100
d433ea
+++ eclipse.jdt.ui/org.eclipse.jdt.ui.tests/nls/pkg/Client.java	2004-11-12 14:37:36.000000000 +0000
d433ea
@@ -0,0 +1,25 @@
d433ea
+/*******************************************************************************
d433ea
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
d433ea
+ * All rights reserved. This program and the accompanying materials 
d433ea
+ * are made available under the terms of the Common Public License v1.0
d433ea
+ * which accompanies this distribution, and is available at
d433ea
+ * http://www.eclipse.org/legal/cpl-v10.html
d433ea
+ * 
d433ea
+ * Contributors:
d433ea
+ *     IBM Corporation - initial API and implementation
d433ea
+ *******************************************************************************/
d433ea
+package pkg;
d433ea
+
d433ea
+public class Client {
d433ea
+	
d433ea
+    public String s;
d433ea
+	
d433ea
+	{
d433ea
+		s= Messages.getString("test");
d433ea
+		s= Messages.getString("test_undefined");
d433ea
+		s= Messages.getString("duplicate");
d433ea
+		s= Messages.getString("test.long.key");
d433ea
+		s= Messages.getString("SearchResultView.removed_resource");
d433ea
+	}
d433ea
+
d433ea
+}
d433ea
--- /dev/null	1970-01-01 01:00:00.000000000 +0100
d433ea
+++ eclipse.jdt.ui/org.eclipse.jdt.ui.tests/nls/pkg/Messages.java	2004-11-12 14:37:28.000000000 +0000
d433ea
@@ -0,0 +1,58 @@
d433ea
+/*******************************************************************************
d433ea
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
d433ea
+ * All rights reserved. This program and the accompanying materials 
d433ea
+ * are made available under the terms of the Common Public License v1.0
d433ea
+ * which accompanies this distribution, and is available at
d433ea
+ * http://www.eclipse.org/legal/cpl-v10.html
d433ea
+ * 
d433ea
+ * Contributors:
d433ea
+ *     IBM Corporation - initial API and implementation
d433ea
+ *******************************************************************************/
d433ea
+package pkg;
d433ea
+
d433ea
+import java.text.MessageFormat;
d433ea
+import java.util.MissingResourceException;
d433ea
+import java.util.ResourceBundle;
d433ea
+
d433ea
+public class Messages extends Object {
d433ea
+    private static final String RESOURCE_BUNDLE = Messages.class.getName();
d433ea
+    private static ResourceBundle fgResourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE);
d433ea
+
d433ea
+    private Messages() {}
d433ea
+
d433ea
+    /**
d433ea
+     * Gets a string from the resource bundle and formats it with the argument
d433ea
+     *
d433ea
+     * @param key   the string used to get the bundle value, must not be null
d433ea
+     */
d433ea
+    public static String getFormattedString(String key, Object arg) {
d433ea
+        String format = null;
d433ea
+
d433ea
+        try {
d433ea
+            format = fgResourceBundle.getString(key);
d433ea
+        } catch (MissingResourceException e) {
d433ea
+            return "!" + key + "!"; //$NON-NLS-2$ //$NON-NLS-1$
d433ea
+        }
d433ea
+
d433ea
+        if (arg == null) {
d433ea
+            arg = ""; //$NON-NLS-1$
d433ea
+        }
d433ea
+
d433ea
+        return MessageFormat.format(format, new Object[] { arg });
d433ea
+    }
d433ea
+
d433ea
+    /**
d433ea
+     * Gets a string from the resource bundle and formats it with arguments
d433ea
+     */
d433ea
+    public static String getFormattedString(String key, String[] args) {
d433ea
+        return MessageFormat.format(fgResourceBundle.getString(key), args);
d433ea
+    }
d433ea
+
d433ea
+    public static String getString(String key) {
d433ea
+        try {
d433ea
+            return fgResourceBundle.getString(key);
d433ea
+        } catch (MissingResourceException e) {
d433ea
+            return "!" + key + "!"; //$NON-NLS-2$ //$NON-NLS-1$
d433ea
+        }
d433ea
+    }
d433ea
+}
d433ea
--- /dev/null	1970-01-01 01:00:00.000000000 +0100
d433ea
+++ eclipse.jdt.ui/org.eclipse.jdt.ui.tests/nls/pkg/Messages.properties	2004-11-12 14:38:06.000000000 +0000
d433ea
@@ -0,0 +1,15 @@
d433ea
+###############################################################################
d433ea
+# Copyright (c) 2000, 2004 IBM Corporation and others.
d433ea
+# All rights reserved. This program and the accompanying materials 
d433ea
+# are made available under the terms of the Common Public License v1.0
d433ea
+# which accompanies this distribution, and is available at
d433ea
+# http://www.eclipse.org/legal/cpl-v10.html
d433ea
+# 
d433ea
+# Contributors:
d433ea
+#     IBM Corporation - initial API and implementation
d433ea
+###############################################################################
d433ea
+test= Hello World
d433ea
+duplicate= Duplicate 1
d433ea
+test.long.key= Hello World Long
d433ea
+duplicate= Duplicate 2
d433ea
+SearchResultView.removed_resource= <removed resource>
d433ea
--- eclipse.platform/ant/org.eclipse.ant.tests.core/build.properties.orig	2017-03-03 14:20:53.868573338 +0000
d433ea
+++ eclipse.platform/ant/org.eclipse.ant.tests.core/build.properties	2017-03-06 14:26:42.382365639 +0000
040604
@@ -26,6 +26,8 @@
d433ea
 source.anttestscore.jar = test plugin/,\
d433ea
                           tests/
d433ea
 source.lib/antTestsSupport.jar = test support/
d433ea
-jars.compile.order=anttestscore.jar,lib/antTestsSupport.jar
d433ea
+source.testlib/classpathOrdering1.jar = testlib_src/classpathOrdering1/
d433ea
+source.testlib/classpathOrdering2.jar = testlib_src/classpathOrdering2/
d433ea
+jars.compile.order=anttestscore.jar,lib/antTestsSupport.jar,testlib/classpathOrdering1.jar,testlib/classpathOrdering2.jar
d433ea
 output.lib/antTestsSupport.jar = test_support_bin/
d433ea
 output.anttestscore.jar = bin/
d433ea
--- /dev/null	2017-02-12 18:27:14.283389371 +0000
d433ea
+++ eclipse.platform/ant/org.eclipse.ant.tests.core/testlib_src/classpathOrdering1/ClasspathOrdering.java	2017-03-06 14:28:57.742879825 +0000
d433ea
@@ -0,0 +1,10 @@
d433ea
+import java.io.PrintStream;
d433ea
+
d433ea
+public class ClasspathOrdering
d433ea
+{
d433ea
+  public static void main(String[] args)
d433ea
+  {
d433ea
+    System.out.println("classpathOrdering1");
d433ea
+  }
d433ea
+}
d433ea
+
d433ea
--- /dev/null	2017-02-12 18:27:14.283389371 +0000
d433ea
+++ eclipse.platform/ant/org.eclipse.ant.tests.core/testlib_src/classpathOrdering2/ClasspathOrdering.java	2017-03-06 14:29:45.759352762 +0000
d433ea
@@ -0,0 +1,10 @@
d433ea
+import java.io.PrintStream;
d433ea
+
d433ea
+public class ClasspathOrdering
d433ea
+{
d433ea
+  public static void main(String[] args)
d433ea
+  {
d433ea
+    System.out.println("classpathOrdering2");
d433ea
+  }
d433ea
+}
d433ea
+
d433ea
--- eclipse.pde.build/org.eclipse.pde.build.tests/test.xml.orig	2017-04-28 11:49:47.046123546 +0100
d433ea
+++ eclipse.pde.build/org.eclipse.pde.build.tests/test.xml	2017-04-28 12:05:11.947521737 +0100
040604
@@ -159,13 +159,6 @@
d433ea
         id="org.eclipse.jdt.source.feature.group"
d433ea
         version="" />
d433ea
       
d433ea
-        id="org.eclipse.rcp.configuration.feature.group"
d433ea
-        version="" />
d433ea
-
d433ea
-      
d433ea
-        id="org.eclipse.equinox.executable"
d433ea
-        version="" />
d433ea
-      
d433ea
         id="org.eclipse.e4.rcp.feature.group"
d433ea
         version="" />
d433ea
       
d433ea
--- eclipse.jdt.core/org.eclipse.jdt.core.tests.builder/pom.xml.orig	2019-03-11 12:52:52.879124384 +0000
d433ea
+++ eclipse.jdt.core/org.eclipse.jdt.core.tests.builder/pom.xml	2019-03-11 12:54:16.445849939 +0000
d433ea
@@ -39,7 +39,22 @@
d433ea
 	  			</includes>
d433ea
 	  			<argLine>${tycho.surefire.argLine}</argLine>
d433ea
 	  		</configuration>
d433ea
-  		</plugin>
d433ea
+		</plugin>
d433ea
+      <plugin>
d433ea
+        <groupId>org.eclipse.tycho</groupId>
d433ea
+        <artifactId>target-platform-configuration</artifactId>
d433ea
+        <configuration>
d433ea
+          <dependency-resolution>
d433ea
+            <extraRequirements>
d433ea
+              <requirement>
d433ea
+                <type>eclipse-plugin</type>
d433ea
+                <id>org.eclipse.jdt.annotation</id>
d433ea
+                <versionRange>0.0.0</versionRange>
d433ea
+              </requirement>
d433ea
+            </extraRequirements>
d433ea
+          </dependency-resolution>
d433ea
+        </configuration>
d433ea
+      </plugin>
d433ea
   	</plugins>
d433ea
   </build>
d433ea
 
040604
--- eclipse.jdt.debug/org.eclipse.jdt.debug.ui/build.properties.orig	2019-12-19 05:19:24.194321737 +0000
040604
+++ eclipse.jdt.debug/org.eclipse.jdt.debug.ui/build.properties	2019-12-19 05:20:03.702264652 +0000
040604
@@ -21,6 +21,9 @@
040604
 
040604
 src.includes = about.html,\
040604
                schema/
040604
+source.snippetsupport.jar=Snippet Support/
040604
 source.. = ui/
040604
 output.. = bin/
040604
+output.snippetsupport.jar = snippet_bin/
040604
 javacWarnings..=-unavoidableGenericProblems
040604
+javacWarnings.snippersupport.jar=-unavoidableGenericProblems