Projects
openEuler:Mainline
eclipse
_service:tar_scm:eclipse-adjust-droplets.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:eclipse-adjust-droplets.patch of Package eclipse
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 @@ -150,7 +150,20 @@ public class EngineActivator implements BundleActivator { } 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 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 @@ -160,7 +160,20 @@ public class SimpleConfiguratorUtils { } 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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2