# HG changeset patch # User Omair Majid # Date 1323378562 18000 # Node ID d494ec44a1947b4c883b25f201452a69dd86785a # Parent 452aa7fc0e7f94176fbfc4dfa9273897b70067e1 Print the arguments passed to the application's main method 2011-12-08 Omair Majid * netx/net/sourceforge/jnlp/Launcher.java (launchApplication): Print arguments being passed to the application's main method in debug mode. diff -r 452aa7fc0e7f -r d494ec44a194 ChangeLog --- a/ChangeLog Fri Oct 28 17:28:53 2011 -0400 +++ b/ChangeLog Thu Dec 08 16:09:22 2011 -0500 @@ -1,3 +1,9 @@ +2011-12-08 Omair Majid + + * netx/net/sourceforge/jnlp/Launcher.java + (launchApplication): Print arguments being passed to the application's + main method in debug mode. + 2011-09-28 Deepak Bhole * NEWS: Prepare for 1.1.5 diff -r 452aa7fc0e7f -r d494ec44a194 netx/net/sourceforge/jnlp/Launcher.java --- a/netx/net/sourceforge/jnlp/Launcher.java Fri Oct 28 17:28:53 2011 -0400 +++ b/netx/net/sourceforge/jnlp/Launcher.java Thu Dec 08 16:09:22 2011 -0500 @@ -25,6 +25,7 @@ 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; @@ -587,6 +588,10 @@ 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;