Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/TransformLoadContext.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/TransformLoadContext.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/TransformLoadContext.java
index 6cc2f17..72c5a23 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/TransformLoadContext.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/TransformLoadContext.java
@@ -35,7 +35,11 @@ public class TransformLoadContext implements ILoadContext
public TransformLoadContext(URL bundleURL) throws MalformedURLException
{
- this.contextURL = new URL("jar:" + bundleURL.toExternalForm() + "!/"); //$NON-NLS-1$ //$NON-NLS-2$
+ if(bundleURL.getFile().endsWith(".jar")) { //$NON-NLS-1$
+ this.contextURL = new URL("jar:" + bundleURL.toExternalForm() + "!/"); //$NON-NLS-1$ //$NON-NLS-2$
+ } else {
+ this.contextURL = bundleURL;
+ }
}

Back to the top