Mercurial > hg > release > icedtea-web-1.2
changeset 315:fb5e54f2b97e
Print the arguments passed to the application's main method
2011-12-08 Omair Majid <omajid@redhat.com>
* netx/net/sourceforge/jnlp/Launcher.java
(launchApplication): Print arguments being passed to the application's
main method in debug mode.
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Thu, 08 Dec 2011 16:01:06 -0500 |
parents | df87375f72cd |
children | 331a58713544 |
files | ChangeLog netx/net/sourceforge/jnlp/Launcher.java |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Dec 05 13:15:32 2011 -0500 +++ b/ChangeLog Thu Dec 08 16:01:06 2011 -0500 @@ -1,3 +1,9 @@ +2011-12-08 Omair Majid <omajid@redhat.com> + + * netx/net/sourceforge/jnlp/Launcher.java + (launchApplication): Print arguments being passed to the application's + main method in debug mode. + 2011-12-05 Danesh Dadachanji <ddadacha@redhat.com> Update UI for AccessWarningPane
--- a/netx/net/sourceforge/jnlp/Launcher.java Mon Dec 05 13:15:32 2011 -0500 +++ b/netx/net/sourceforge/jnlp/Launcher.java Thu Dec 08 16:01:06 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; @@ -586,6 +587,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;