From f56ad6599d469e5df1abe6a66a4355afb7178ef0 Mon Sep 17 00:00:00 2001 From: "kh5325.kim" Date: Fri, 5 Apr 2013 16:32:45 +0900 Subject: [PATCH] Fixed to use /usr/bin/dlogutil --- .../src/org/tizen/common/connection/log/LogTab.java | 3 ++- org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/org.tizen.common.connection/src/org/tizen/common/connection/log/LogTab.java b/org.tizen.common.connection/src/org/tizen/common/connection/log/LogTab.java index e09cb66..84c6ff0 100755 --- a/org.tizen.common.connection/src/org/tizen/common/connection/log/LogTab.java +++ b/org.tizen.common.connection/src/org/tizen/common/connection/log/LogTab.java @@ -38,6 +38,7 @@ import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.TabItem; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableItem; +import org.tizen.common.TizenPlatformConstants; import org.tizen.common.connection.ConnectionPlugin; import org.tizen.common.connection.log.LogPanel.LogMessage; import org.tizen.common.connection.log.LogPanel.LogMessageInfo; @@ -288,7 +289,7 @@ public class LogTab try { - device.executeShellCommand("/usr/bin/dlogutil -v long *:" + level.getPriorityLetter(), logReceiver, 0 /* timeout */); //$NON-NLS-1$ + device.executeShellCommand(String.format(TizenPlatformConstants.DLOGUTIL_CMD, "-v long *:" + level.getPriorityLetter()), logReceiver, 0 /* timeout */); //$NON-NLS-1$ } catch (Exception e) { Logger.error("LogTab", e); diff --git a/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java b/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java index 7f89b6e..ed5a4c2 100644 --- a/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java +++ b/org.tizen.common/src/org/tizen/common/TizenPlatformConstants.java @@ -86,7 +86,8 @@ public class TizenPlatformConstants { public static final String PKG_TOOL_TERMINATE_COMMAND; public static final String PKG_TOOL_REINSTALL_COMMAND; public static final String REMOVE_FILE_COMMAND; - + public static final String DLOGUTIL_CMD; + // Definitions for RDS public static final String RDS_PUSH_DIRECTORY_COMMAND = "mkdir -p -m 755 \"%s\""+ TizenPlatformConstants.CMD_SUFFIX; public static final String RDS_CHANGE_OWNER_COMMAND = "chown -R app:app \"%s\"" + TizenPlatformConstants.CMD_SUFFIX; @@ -153,6 +154,9 @@ public class TizenPlatformConstants { LAUNCH_CMD = "/usr/bin/launch_app %s"; SDK_ROOT_COMMAND = "/usr/bin/da_command"; PROCESS_GET_PROCESS_ID_COMMAND = SDK_ROOT_COMMAND + " process | grep '%s' | grep -v grep | awk '{print $2}'"; + + // Should be absolute path + DLOGUTIL_CMD = "/usr/bin/dlogutil %s"; } /** -- 2.7.4