diff options
author | Hannes Wellmann | 2022-03-14 21:21:49 +0000 |
---|---|---|
committer | Sarika Sinha | 2022-03-17 10:03:38 +0000 |
commit | 6d7ba0e9c4712fbd3b53af64b3e33560e1405872 (patch) | |
tree | 76b065bb268008cf831313fa2ac27d7daba46d0d | |
parent | 503d3fbf1859043ed9718913ee691182c67a3efc (diff) | |
download | eclipse.platform-master.tar.gz eclipse.platform-master.tar.xz eclipse.platform-master.zip |
Bug 578820 - Use new FileLocator.getBundleFileLocation(Bundle)HEADI20220317-1800master
Change-Id: I2923fbbdc48304da870da3813c5736e85d270d66
Signed-off-by: Hannes Wellmann <wellmann.hannes1@gmx.net>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform/+/191882
Tested-by: Sarika Sinha <sarika.sinha@in.ibm.com>
Reviewed-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r-- | ant/org.eclipse.ant.core/META-INF/MANIFEST.MF | 2 | ||||
-rw-r--r-- | ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ant/org.eclipse.ant.core/META-INF/MANIFEST.MF b/ant/org.eclipse.ant.core/META-INF/MANIFEST.MF index 342f22268..e1023fb16 100644 --- a/ant/org.eclipse.ant.core/META-INF/MANIFEST.MF +++ b/ant/org.eclipse.ant.core/META-INF/MANIFEST.MF @@ -15,7 +15,7 @@ Export-Package: org.eclipse.ant.core, org.eclipse.ant.internal.core.ant;x-friends:="org.eclipse.ant.launching", org.eclipse.ant.internal.core.contentDescriber;x-internal:=true Require-Bundle: org.eclipse.core.variables;bundle-version="[3.1.0,4.0.0)", - org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)" + org.eclipse.core.runtime;bundle-version="[3.25.0,4.0.0)" Bundle-ActivationPolicy: lazy;exclude:="org.eclipse.ant.internal.core.contentDescriber" Bundle-RequiredExecutionEnvironment: JavaSE-11 Bundle-ClassPath: . diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java index 1ba8d186b..695ad3e7b 100644 --- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java +++ b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java @@ -651,7 +651,7 @@ public class AntCorePreferences implements IPropertyChangeListener { private URL getClasspathEntryURL(Bundle bundle, String library) throws IOException { File urlFile = null; if (library.equals("/")) { //$NON-NLS-1$ - urlFile = FileLocator.getBundleFile(bundle); + urlFile = FileLocator.getBundleFileLocation(bundle).orElseThrow(); } else { try { URL fileURL = FileLocator.toFileURL(bundle.getEntry(library)); |