2015-11-03 17:04:47 +00:00
|
|
|
|
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
|
|
|
|
|
index 5fc0e73..ed7e4fa 100644
|
|
|
|
|
--- 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
|
2017-04-19 11:45:38 +00:00
|
|
|
|
@@ -147,7 +147,20 @@ public class EngineActivator implements BundleActivator {
|
2015-11-03 17:04:47 +00:00
|
|
|
|
}
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
- File[] listFiles = extension.listFiles();
|
|
|
|
|
+
|
|
|
|
|
+ // Support the additional 'eclipse' directory if it exists.
|
|
|
|
|
+ File[] extensionFiles = extension.listFiles(new FilenameFilter() {
|
|
|
|
|
+ public boolean accept(File dir, String name) {
|
|
|
|
|
+ return name.equals("eclipse");
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ File[] listFiles;
|
|
|
|
|
+ if (extensionFiles.length == 1) {
|
|
|
|
|
+ listFiles = extensionFiles[0].listFiles();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ listFiles = extension.listFiles();
|
|
|
|
|
+ }
|
|
|
|
|
// new magic - multiple info files, f.e.
|
|
|
|
|
// egit.info (git feature)
|
|
|
|
|
// cdt.link (properties file containing link=path) to other info file
|
2015-08-27 13:49:12 +00:00
|
|
|
|
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
|
|
|
|
|
index 12e4d89..77945ef 100644
|
|
|
|
|
--- 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
|
2017-04-19 11:45:38 +00:00
|
|
|
|
@@ -155,7 +155,20 @@ public class SimpleConfiguratorUtils {
|
2015-08-27 13:49:12 +00:00
|
|
|
|
}
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
- File[] listFiles = extension.listFiles();
|
|
|
|
|
+
|
|
|
|
|
+ // Support the additional 'eclipse' directory if it exists.
|
|
|
|
|
+ File[] extensionFiles = extension.listFiles(new FilenameFilter() {
|
|
|
|
|
+ public boolean accept(File dir, String name) {
|
|
|
|
|
+ return name.equals("eclipse");
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ File[] listFiles;
|
|
|
|
|
+ if (extensionFiles.length == 1) {
|
|
|
|
|
+ listFiles = extensionFiles[0].listFiles();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ listFiles = extension.listFiles();
|
|
|
|
|
+ }
|
|
|
|
|
// new magic - multiple info files, f.e.
|
|
|
|
|
// egit.info (git feature)
|
|
|
|
|
// cdt.link (properties file containing link=path) to other info file
|
2017-01-25 19:09:06 +00:00
|
|
|
|
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
|
|
|
|
|
index 3d7e313..debbfb8 100644
|
|
|
|
|
--- 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
|
2017-04-19 11:45:38 +00:00
|
|
|
|
@@ -236,10 +236,11 @@
|
2017-01-25 19:09:06 +00:00
|
|
|
|
|| "feature".equals(cap.getName())) { //$NON-NLS-1$
|
|
|
|
|
featureOrBundle = true;
|
|
|
|
|
}
|
2017-04-19 11:45:38 +00:00
|
|
|
|
- } else if (Boolean.TRUE.equals(Boolean.valueOf(unit.getProperties().get("org.eclipse.equinox.p2.type.group")))) { //$NON-NLS-1$
|
2017-01-25 19:09:06 +00:00
|
|
|
|
- featureOrBundle = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-04-19 11:45:38 +00:00
|
|
|
|
+ if (Boolean.TRUE.equals(Boolean.valueOf(unit.getProperties().get("org.eclipse.equinox.p2.type.group")))) { //$NON-NLS-1$
|
|
|
|
|
+ featureOrBundle = true;
|
2017-01-25 19:09:06 +00:00
|
|
|
|
+ }
|
|
|
|
|
if (featureOrBundle && !added.contains(unit)) {
|
|
|
|
|
added.add(unit);
|
|
|
|
|
sharedProfile.addInstallableUnit(unit);
|