changeset 62:d2f77074c0d6

CODETOOLS-7045584 need to be able to turn on KFL reporting from CLI
author bkurotsu
date Fri, 13 Nov 2015 00:39:44 -0700
parents 9be6859bfa9a
children 10aaa8fa1752
files src/com/sun/javatest/report/ReportManager.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/sun/javatest/report/ReportManager.java	Thu Sep 03 12:47:53 2015 -0600
+++ b/src/com/sun/javatest/report/ReportManager.java	Fri Nov 13 00:39:44 2015 -0700
@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -40,6 +40,7 @@
 import com.sun.javatest.tool.Command;
 import com.sun.javatest.tool.CommandContext;
 import com.sun.javatest.tool.CommandManager;
+import com.sun.javatest.tool.Preferences;
 import com.sun.javatest.util.HelpTree;
 import com.sun.javatest.util.I18NResourceBundle;
 import com.sun.javatest.util.StringArray;
@@ -138,6 +139,10 @@
                         throw new Fault(i18n, "rm.writeReport.missingArg");
                     type = nextArg(argIter);
                 }
+                else if (arg.equals("-kfl")) {
+                    // allow user to turn on KFL section by overriding Preferences
+                    Preferences.access().setPreference("rps.html.kfl", "true");
+                }
                 else if (arg.equals("-filter")) {
                     if (!argIter.hasNext())
                         throw new Fault(i18n, "rm.writeReport.missingArg");