From 62232e9074b526d63daf518a2884fb10c53090cb Mon Sep 17 00:00:00 2001 From: "hyunsik.noh" Date: Tue, 3 Dec 2013 11:23:41 +0900 Subject: [PATCH] COMMON: add SdbCommand constructor for cli. Change-Id: I11851863368f9a5dbbdd549711eb07f279b10e45 Signed-off-by: hyunsik.noh --- org.tizen.common/src/org/tizen/common/sdb/command/SdbCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.tizen.common/src/org/tizen/common/sdb/command/SdbCommand.java b/org.tizen.common/src/org/tizen/common/sdb/command/SdbCommand.java index b3a46bf..29cadaa 100644 --- a/org.tizen.common/src/org/tizen/common/sdb/command/SdbCommand.java +++ b/org.tizen.common/src/org/tizen/common/sdb/command/SdbCommand.java @@ -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 { -- 2.7.4