X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.jshell%2Fsrc%2Forg%2Fargeo%2Finternal%2Fcms%2Fjshell%2Fosgi%2FOsgiExecutionControlProvider.java;h=66a0ed992eee0c4f26967dc1a241d40c57cbb8e8;hb=59b93352f4a8725d103c1154a06b5e380cbc8738;hp=4a8f1685f769b0d622373cff420362902dbea124;hpb=c692c089327ab02a19dc5dae90bb003cdf75956d;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java b/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java index 4a8f1685f..66a0ed992 100644 --- a/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java +++ b/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java @@ -179,9 +179,9 @@ public class OsgiExecutionControlProvider implements ExecutionControlProvider { } public static String getBundleClasspath(Long bundleId) throws IOException { - String framework = System.getProperty("osgi.framework"); - Path frameworkLocation = Paths.get(URI.create(framework)).toAbsolutePath(); BundleContext bc = FrameworkUtil.getBundle(OsgiExecutionControlProvider.class).getBundleContext(); + String framework = bc.getProperty("osgi.framework"); + Path frameworkLocation = Paths.get(URI.create(framework)).toAbsolutePath(); Bundle fromBundle = bc.getBundle(bundleId); BundleWiring fromBundleWiring = fromBundle.adapt(BundleWiring.class);