aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/PluginBridge.java
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 /netx/net/sourceforge/jnlp/PluginBridge.java
parentcaaebec3b828bf020403b85aa88854b25ffac836 (diff)
Trim whitespace from jar names in PluginBridge constructor.
Diffstat (limited to 'netx/net/sourceforge/jnlp/PluginBridge.java')
-rw-r--r--netx/net/sourceforge/jnlp/PluginBridge.java6
1 files changed, 6 insertions, 0 deletions
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);