aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-12-08 16:01:06 -0500
committerOmair Majid <[email protected]>2011-12-08 16:01:06 -0500
commit47a7e41e7548374a183db6683c5f6819a772524a (patch)
tree7b50b71f615ef5eae6a5ba0dcd4b1a025c2336cc /netx/net/sourceforge
parentdf4088353198de359fc0910882446ca70b2524e0 (diff)
Print the arguments passed to the application's main method
2011-12-08 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/Launcher.java (launchApplication): Print arguments being passed to the application's main method in debug mode.
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/Launcher.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/Launcher.java b/netx/net/sourceforge/jnlp/Launcher.java
index 1c99e29..a9fa908 100644
--- a/netx/net/sourceforge/jnlp/Launcher.java
+++ b/netx/net/sourceforge/jnlp/Launcher.java
@@ -25,6 +25,7 @@ import java.lang.reflect.Method;
import java.net.InetAddress;
import java.net.URL;
import java.net.UnknownHostException;
+import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
@@ -586,6 +587,10 @@ public class Launcher {
handler.launchStarting(app);
main.setAccessible(true);
+
+ if (JNLPRuntime.isDebug()) {
+ System.out.println("Invoking main() with args: " + Arrays.toString(args));
+ }
main.invoke(null, new Object[] { args });
return app;