summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-03-23 11:15:26 (EST)
committerpelder2006-03-23 11:15:26 (EST)
commit1421494ed63e4f41a6bc3991101a8440dde10484 (patch)
tree1ded4132584af79eeb9e898b0109d567843043e2
parent3e7e12643751f1c62d814eb4a3017e0c9dc16212 (diff)
downloadorg.eclipse.jet-1421494ed63e4f41a6bc3991101a8440dde10484.zip
org.eclipse.jet-1421494ed63e4f41a6bc3991101a8440dde10484.tar.gz
org.eclipse.jet-1421494ed63e4f41a6bc3991101a8440dde10484.tar.bz2
[133014] Use a jar URL protocol only on .jar files.
-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;
+ }
}