/hg/icedtea-web: PolicyEditor now honor verbose switch
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Wed Apr 1 16:09:40 UTC 2015
changeset 8661e15b9f1b in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=8661e15b9f1b
author: Jiri Vanek <jvanek at redhat.com>
date: Wed Apr 01 18:09:27 2015 +0200
PolicyEditor now honor verbose switch
* netx/net/sourceforge/jnlp/OptionsDefinitions.java: OPTIONS.VERBOSE added to list of PolicyEditor's commands
* netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor: (main) set debug to true, if verbose is presented.
diffstat:
ChangeLog | 8 ++++++++
netx/net/sourceforge/jnlp/OptionsDefinitions.java | 4 +++-
netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java | 4 ++++
3 files changed, 15 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r b7b28ec53a8b -r 8661e15b9f1b ChangeLog
--- a/ChangeLog Tue Mar 31 12:39:54 2015 +0200
+++ b/ChangeLog Wed Apr 01 18:09:27 2015 +0200
@@ -1,3 +1,11 @@
+2015-03-31 Jiri Vanek <jvanek at redhat.com>
+
+ PolicyEditor now honor verbose switch
+ * netx/net/sourceforge/jnlp/OptionsDefinitions.java: OPTIONS.VERBOSE added to
+ list of PolicyEditor's commands
+ * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor: (main) set
+ debug to true, if verbose is presented.
+
2015-03-31 Jiri Vanek <jvanek at redhat.com>
* Messages.properties: (FILElogs) adapted to more suit current docs.
diff -r b7b28ec53a8b -r 8661e15b9f1b netx/net/sourceforge/jnlp/OptionsDefinitions.java
--- a/netx/net/sourceforge/jnlp/OptionsDefinitions.java Tue Mar 31 12:39:54 2015 +0200
+++ b/netx/net/sourceforge/jnlp/OptionsDefinitions.java Wed Apr 01 18:09:27 2015 +0200
@@ -174,7 +174,9 @@
return Arrays.asList(new OPTIONS[]{
OPTIONS.HELP1,
OPTIONS.FILE,
- OPTIONS.CODEBASE}
+ OPTIONS.CODEBASE,
+ OPTIONS.VERBOSE
+ }
);
}
diff -r b7b28ec53a8b -r 8661e15b9f1b netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java
--- a/netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java Tue Mar 31 12:39:54 2015 +0200
+++ b/netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java Wed Apr 01 18:09:27 2015 +0200
@@ -1598,6 +1598,10 @@
*/
public static void main(final String[] args) {
final OptionParser optionParser = new OptionParser(args, OptionsDefinitions.getPolicyEditorOptions());
+
+ if (optionParser.hasOption(OptionsDefinitions.OPTIONS.VERBOSE)) {
+ JNLPRuntime.setDebug(true);
+ }
if (optionParser.hasOption(OptionsDefinitions.OPTIONS.HELP1)) {
final TextsProvider helpMessagesProvider = new PolicyEditorTextsProvider("utf-8", new PlainTextFormatter(), true, true);
More information about the distro-pkg-dev
mailing list