|
|
331baf8 |
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
|
|
|
331baf8 |
index 5fc0e73..ed7e4fa 100644
|
|
|
331baf8 |
--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java
|
|
|
331baf8 |
+++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java
|
|
|
331baf8 |
@@ -144,7 +144,20 @@ public class EngineActivator implements BundleActivator {
|
|
|
331baf8 |
}
|
|
|
331baf8 |
continue;
|
|
|
331baf8 |
}
|
|
|
331baf8 |
- File[] listFiles = extension.listFiles();
|
|
|
331baf8 |
+
|
|
|
331baf8 |
+ // Support the additional 'eclipse' directory if it exists.
|
|
|
331baf8 |
+ File[] extensionFiles = extension.listFiles(new FilenameFilter() {
|
|
|
331baf8 |
+ public boolean accept(File dir, String name) {
|
|
|
331baf8 |
+ return name.equals("eclipse");
|
|
|
331baf8 |
+ }
|
|
|
331baf8 |
+ });
|
|
|
331baf8 |
+
|
|
|
331baf8 |
+ File[] listFiles;
|
|
|
331baf8 |
+ if (extensionFiles.length == 1) {
|
|
|
331baf8 |
+ listFiles = extensionFiles[0].listFiles();
|
|
|
331baf8 |
+ } else {
|
|
|
331baf8 |
+ listFiles = extension.listFiles();
|
|
|
331baf8 |
+ }
|
|
|
331baf8 |
// new magic - multiple info files, f.e.
|
|
|
331baf8 |
// egit.info (git feature)
|
|
|
331baf8 |
// cdt.linkĀ (properties file containing link=path) to other info file
|
|
|
da94d71 |
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
|
|
|
da94d71 |
index 12e4d89..77945ef 100644
|
|
|
da94d71 |
--- rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java
|
|
|
da94d71 |
+++ rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java
|
|
|
da94d71 |
@@ -156,7 +156,20 @@ public class SimpleConfiguratorUtils {
|
|
|
da94d71 |
}
|
|
|
da94d71 |
continue;
|
|
|
da94d71 |
}
|
|
|
da94d71 |
- File[] listFiles = extension.listFiles();
|
|
|
da94d71 |
+
|
|
|
da94d71 |
+ // Support the additional 'eclipse' directory if it exists.
|
|
|
da94d71 |
+ File[] extensionFiles = extension.listFiles(new FilenameFilter() {
|
|
|
da94d71 |
+ public boolean accept(File dir, String name) {
|
|
|
da94d71 |
+ return name.equals("eclipse");
|
|
|
da94d71 |
+ }
|
|
|
da94d71 |
+ });
|
|
|
da94d71 |
+
|
|
|
da94d71 |
+ File[] listFiles;
|
|
|
da94d71 |
+ if (extensionFiles.length == 1) {
|
|
|
da94d71 |
+ listFiles = extensionFiles[0].listFiles();
|
|
|
da94d71 |
+ } else {
|
|
|
da94d71 |
+ listFiles = extension.listFiles();
|
|
|
da94d71 |
+ }
|
|
|
da94d71 |
// new magic - multiple info files, f.e.
|
|
|
da94d71 |
// egit.info (git feature)
|
|
|
da94d71 |
// cdt.linkĀ (properties file containing link=path) to other info file
|
|
|
7de04d1 |
diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SurrogateProfileHandler.java rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SurrogateProfileHandler.java
|
|
|
7de04d1 |
index 3d7e313..debbfb8 100644
|
|
|
7de04d1 |
--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SurrogateProfileHandler.java
|
|
|
7de04d1 |
+++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SurrogateProfileHandler.java
|
|
|
7de04d1 |
@@ -238,10 +238,11 @@ public class SurrogateProfileHandler implements ISurrogateProfileHandler {
|
|
|
7de04d1 |
|| "feature".equals(cap.getName())) { //$NON-NLS-1$
|
|
|
7de04d1 |
featureOrBundle = true;
|
|
|
7de04d1 |
}
|
|
|
7de04d1 |
- } else if (Boolean.TRUE.equals(unit.getProperties().get("org.eclipse.equinox.p2.type.group"))) { //$NON-NLS-1$
|
|
|
7de04d1 |
- featureOrBundle = true;
|
|
|
7de04d1 |
}
|
|
|
7de04d1 |
}
|
|
|
7de04d1 |
+ if (Boolean.TRUE.toString().equals(unit.getProperties().get("org.eclipse.equinox.p2.type.group"))) { //$NON-NLS-1$
|
|
|
7de04d1 |
+ featureOrBundle = true;
|
|
|
7de04d1 |
+ }
|
|
|
7de04d1 |
if (featureOrBundle && !added.contains(unit)) {
|
|
|
7de04d1 |
added.add(unit);
|
|
|
7de04d1 |
sharedProfile.addInstallableUnit(unit);
|