[hg] main-silver: introduced cli switches for some bugtracking a...

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: introduced cli switches for some bugtracking a...
  • Date: Fri, 10 Jan 2014 04:50:46 +0000

changeset fa2cd9f1aa6d in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/fa2cd9f1aa6d
description:
        introduced cli switches for some bugtracking and odcs settings

diffstat:

 
bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardSettings.java
 |  6 +++---
 odcs.ui/src/org/netbeans/modules/odcs/ui/settings/OdcsSettings.java          
    |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (30 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardSettings.java
 
b/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardSettings.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardSettings.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardSettings.java
@@ -71,9 +71,9 @@
      * default values in fields
      */
     private static final boolean DEFAULT_AUTO_SYNC = true;
-    private static final int DEFAULT_AUTO_SYNC_VALUE = 15;
-    private static final boolean DEFAULT_TASKS_LIMIT = true;
-    private static final int DEFAULT_TASKS_LIMIT_VALUE = 50;
+    private static final int DEFAULT_AUTO_SYNC_VALUE = 
Integer.parseInt(System.getProperty("bugtracking.dashboard.autosync.interval",
 "15"));
+    private static final boolean DEFAULT_TASKS_LIMIT = 
Boolean.parseBoolean(System.getProperty("bugtracking.dashboard.autosync", 
"true"));
+    private static final int DEFAULT_TASKS_LIMIT_VALUE = 
Integer.parseInt(System.getProperty("bugtracking.dashboard.tasks.limit", 
"50"));
     private static final boolean DEFAULT_TASKS_LIMIT_CATEGORY = false;
     private static final boolean DEFAULT_TASKS_LIMIT_QUERY = true;
     private static final boolean DEFAULT_FINISHED_TASK_FILTER = true;
diff --git 
a/odcs.ui/src/org/netbeans/modules/odcs/ui/settings/OdcsSettings.java 
b/odcs.ui/src/org/netbeans/modules/odcs/ui/settings/OdcsSettings.java
--- a/odcs.ui/src/org/netbeans/modules/odcs/ui/settings/OdcsSettings.java
+++ b/odcs.ui/src/org/netbeans/modules/odcs/ui/settings/OdcsSettings.java
@@ -61,8 +61,8 @@
     /*
      * default values in fields
      */
-    private static final boolean DEFAULT_AUTO_SYNC = true;
-    private static final int DEFAULT_AUTO_SYNC_VALUE = 15;
+    private static final boolean DEFAULT_AUTO_SYNC = 
Boolean.parseBoolean(System.getProperty("odcs.autosync", "true"));
+    private static final int DEFAULT_AUTO_SYNC_VALUE = 
Integer.parseInt(System.getProperty("odcs.autosync.interval", "15"));
 
     private PropertyChangeSupport support = new PropertyChangeSupport(this);
 

[hg] main-silver: introduced cli switches for some bugtracking a...

Tomas Stupka 01/10/2014

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 88 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close