[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
Change-Id: I464ca44e9368bfbc78f6e5a80800ba6e0036c5f7
// Definitions for others
public static final String CODE_COVERAGE_BUILD_OPTION = "-fprofile-arcs -ftest-coverage";
public static final String CODE_COVERAGE_LAUNCH_OPTION = " __AUL_SDK__ CODE_COVERAGE";
+ public static final String PROCESS_GET_PROCESS_ID_COMMAND = "ps -ef | grep '%s' | grep -v grep | awk '{print $2}'";
+ public static final String PROCESS_SIGKILL_COMMAND = "kill -9 %s";
}
return result;
}
+ /**
+ * Returns <code>true</code> if the given str is set of integers. Or {@code false} otherwise.
+ *
+ */
+ public static boolean isInteger(String str) {
+ try {
+ Integer.parseInt(str);
+ return true;
+ } catch (NumberFormatException e) {
+ return false;
+ }
+ }
}