diff options
author | Omair Majid <[email protected]> | 2013-09-09 11:32:36 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2013-09-09 11:32:36 -0400 |
commit | eae8bd5edfb2300861eb1e646595b27b68293829 (patch) | |
tree | 0ad66a0bdefaa8472b8b61b98151bbd316021efd /netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | |
parent | 6d8f2f2829a06dee43cfe08eea2be162836b65a3 (diff) |
PR1533: Inherit jnlp.packEnabled and jnlp.versionEnabled like other properties
Treat jnlp.packEnabled and jnlp.versionEnabled just like other
properties that can be set in one resource element and
inherited/filtered in others.
2013-09-09 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/JNLPFile.java
(getDownloadOptionsForJar): Rename to ...
(getDownloadOptions): New method. Look up jnlp.packEnabled and
jnlp.versionEnabled in any resources element.
* netx/net/sourceforge/jnlp/PluginBridge.java
(getDownloadOptionsForJar): Rename to ...
(getDownloadOptions): New method.
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
(initializeResources): Invoke file.getDownloadResources.
(getDownloadOptionsForJar): Remove.
* tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java
(testDownloadOptionsAppliedEverywhere): New method.
(testDownloadOptionsFilteredOut): New method.
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index a74f541..4efa435 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -626,7 +626,7 @@ public class JNLPClassLoader extends URLClassLoader { tracker.addResource(jars[i].getLocation(), jars[i].getVersion(), - getDownloadOptionsForJar(jars[i]), + file.getDownloadOptions(), jars[i].isCacheable() ? JNLPRuntime.getDefaultUpdatePolicy() : UpdatePolicy.FORCE ); } @@ -1966,10 +1966,6 @@ public class JNLPClassLoader extends URLClassLoader { } } - private DownloadOptions getDownloadOptionsForJar(JARDesc jar) { - return file.getDownloadOptionsForJar(jar); - } - /** * Returns a set of paths that indicate the Class-Path entries in the * manifest file. The paths are rooted in the same directory as the |