COMMON: add SdbCommand constructor for cli. 81/13281/1
authorhyunsik.noh <hyunsik.noh@samsung.com>
Tue, 3 Dec 2013 02:23:41 +0000 (11:23 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Tue, 3 Dec 2013 02:23:41 +0000 (11:23 +0900)
Change-Id: I11851863368f9a5dbbdd549711eb07f279b10e45
Signed-off-by: hyunsik.noh <hyunsik.noh@samsung.com>
org.tizen.common/src/org/tizen/common/sdb/command/SdbCommand.java

index b3a46bf..29cadaa 100644 (file)
@@ -74,12 +74,16 @@ public class SdbCommand {
     }
 
     public SdbCommand(IDevice device, ITizenConsoleManager console, CommandOutputReceiver receiver) {
+        this(device, console, receiver,CommonPlugin.getDefault().getPreferenceStore().getInt(SdbPreferencePage.KEY_SDB_RESPONSE_TIMEOUT));
+    }
+    
+    public SdbCommand(IDevice device, ITizenConsoleManager console, CommandOutputReceiver receiver, int timeout) {
         this.device = device;
         this.console = console;
         this.receiver = receiver;
 
         sdbPath = InstallPathConfig.getSDBPath();
-        this.defaultTimeout = CommonPlugin.getDefault().getPreferenceStore().getInt(SdbPreferencePage.KEY_SDB_RESPONSE_TIMEOUT);
+        this.defaultTimeout = timeout;
     }
 
     public void runCommand(String command) throws Exception {