Blame SOURCES/eclipse-adjust-droplets.patch

d433ea
diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java
d433ea
index 5fc0e73..ed7e4fa 100644
d433ea
--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java
d433ea
+++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java
d433ea
@@ -150,7 +150,20 @@ public class EngineActivator implements BundleActivator {
d433ea
 						}
d433ea
 						continue;
d433ea
 					}
d433ea
-					File[] listFiles = extension.listFiles();
d433ea
+
d433ea
+					// Support the additional 'eclipse' directory if it exists.
d433ea
+					File[] extensionFiles = extension.listFiles(new FilenameFilter() {
d433ea
+						public boolean accept(File dir, String name) {
d433ea
+							return name.equals("eclipse");
d433ea
+						}
d433ea
+					});
d433ea
+
d433ea
+					File[] listFiles;
d433ea
+					if (extensionFiles.length == 1) {
d433ea
+						listFiles = extensionFiles[0].listFiles();
d433ea
+					} else {
d433ea
+						listFiles = extension.listFiles();
d433ea
+					}
d433ea
 					// new magic - multiple info files, f.e.
d433ea
 					//   egit.info (git feature)
d433ea
 					//   cdt.linkĀ (properties file containing link=path) to other info file
d433ea
diff --git rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java
d433ea
index 12e4d89..77945ef 100644
d433ea
--- rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java
d433ea
+++ rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java
d433ea
@@ -160,7 +160,20 @@ public class SimpleConfiguratorUtils {
d433ea
 						}
d433ea
 						continue;
d433ea
 					}
d433ea
-					File[] listFiles = extension.listFiles();
d433ea
+
d433ea
+					// Support the additional 'eclipse' directory if it exists.
d433ea
+					File[] extensionFiles = extension.listFiles(new FilenameFilter() {
d433ea
+						public boolean accept(File dir, String name) {
d433ea
+							return name.equals("eclipse");
d433ea
+						}
d433ea
+					});
d433ea
+
d433ea
+					File[] listFiles;
d433ea
+					if (extensionFiles.length == 1) {
d433ea
+						listFiles = extensionFiles[0].listFiles();
d433ea
+					} else {
d433ea
+						listFiles = extension.listFiles();
d433ea
+					}
d433ea
 					// new magic - multiple info files, f.e.
d433ea
 					//   egit.info (git feature)
d433ea
 					//   cdt.linkĀ (properties file containing link=path) to other info file