Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Läubrich2019-11-06 18:54:46 +0000
committerChristoph Läubrich2019-11-06 18:54:46 +0000
commitdf5685dd54d291c78d353dfb983c67d428b1f544 (patch)
treef232fe92746de1169391d400a11048d56c57ff22
parent94dbcd38499f9683ce995cd66c388e7b0a225d1b (diff)
downloadrt.equinox.framework-df5685dd54d291c78d353dfb983c67d428b1f544.tar.gz
rt.equinox.framework-df5685dd54d291c78d353dfb983c67d428b1f544.tar.xz
rt.equinox.framework-df5685dd54d291c78d353dfb983c67d428b1f544.zip
Bug 527175 - Storage#getSystemContent() should first make the fileY20191107-0420I20191106-1805
absolute Change-Id: I05446e0484b5a5a60defae3019f46c05ed5a062e Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
index 589b65681..aca2dd265 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2018 IBM Corporation and others.
+ * Copyright (c) 2012, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -10,6 +10,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Christoph Läubrich - Bug 527175 - Storage#getSystemContent() should first make the file absolute
*******************************************************************************/
package org.eclipse.osgi.storage;
@@ -1595,7 +1596,7 @@ public class Storage {
return null;
}
// TODO assumes the location is a file URL
- File result = new File(frameworkValue.substring(5));
+ File result = new File(frameworkValue.substring(5)).getAbsoluteFile();
if (!result.exists()) {
throw new IllegalStateException("Configured framework location does not exist: " + result.getAbsolutePath()); //$NON-NLS-1$
}

Back to the top