aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2010-10-26 18:08:09 -0700
committerDeepak Bhole <[email protected]>2010-10-26 18:08:09 -0700
commit8dcba1a5958c5e4fe91cd08779a0f4e0e74b39e3 (patch)
tree3f47b0704278ca32b57abe06b01d134f6c7d2ba6
parentcaaebec3b828bf020403b85aa88854b25ffac836 (diff)
Trim whitespace from jar names in PluginBridge constructor.
-rw-r--r--ChangeLog5
-rw-r--r--netx/net/sourceforge/jnlp/PluginBridge.java6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b6e05e6..4b27fdc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-10-26 Deepak Bhole <[email protected]>
+ * netx/net/sourceforge/jnlp/PluginBridge.java: Trim whitespace from jar
+ names in the constructor.
+
+2010-10-26 Deepak Bhole <[email protected]>
+
* plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:
Replace all status.put calls with calls to updateStatus().
(createPanel): Create a frame with a 0 handle. Use the new
diff --git a/netx/net/sourceforge/jnlp/PluginBridge.java b/netx/net/sourceforge/jnlp/PluginBridge.java
index 9312097..56538e7 100644
--- a/netx/net/sourceforge/jnlp/PluginBridge.java
+++ b/netx/net/sourceforge/jnlp/PluginBridge.java
@@ -103,6 +103,12 @@ public class PluginBridge extends JNLPFile
if (jar != null && jar.length() > 0) {
this.jars = jar.split(",");
+
+ // trim white spaces
+ for (int i =0; i < this.jars.length; i++) {
+ this.jars[i] = this.jars[i].trim();
+ }
+
if (JNLPRuntime.isDebug()) {
System.err.println("Jar string: " + jar);
System.err.println("jars length: " + jars.length);