import java.util.ArrayList;
+import org.tizen.emulator.manager.resources.StringResources;
+import org.tizen.emulator.manager.vms.RAM_SIZE;
+import org.tizen.emulator.manager.vms.RESOLUTION;
+
public abstract class Action {
- protected String action = null;
+ protected String action = null;
protected ArrayList<Command> commandList = null;
protected String description = null;
protected String usage = null;
if (commandList == null) {
return null;
}
-
+
String message = null;
for (Command c : commandList) {
if (c != null) {
if (c.isMandatory() && !c.isInCommandLine()) {
- message = "--" + c.getLongName() + "(-" + c.getShortName() + ")";
+ message = "--" + c.getLongName() + "(-" + c.getShortName()
+ + ")";
}
}
}
if (commandList == null) {
return null;
}
-
+
for (Command c : commandList) {
if (c != null) {
if (c.getLongName().equals(a)) {
if (commandList == null) {
return null;
}
-
+
for (Command c : commandList) {
if (c != null) {
if (c.getLongName().equals(a)) {
if (commandList == null) {
return null;
}
-
+
for (Command c : commandList) {
if (c != null) {
if (c.getShortName().equals(a)) {
}
class Command {
+ public static String RES = "RES";
private String shortName;
private String longName;
private String description;
private boolean needsExtra;
private boolean isInCommandLine;
- public Command (String shortName, String longName,
- String description, String defaultValue,
- boolean isMandatory, boolean needsExtra) {
- this.shortName = shortName;
- this.longName = longName;
- this.key = (shortName.isEmpty() ? "" : "-" +shortName + ", ")
- + "--" + longName;
- this.description = description;
- this.defaultValue = defaultValue;
- this.currentValue = this.defaultValue;
- this.isMandatory = isMandatory;
- this.needsExtra = needsExtra;
+ public Command(String shortName, String longName, String description,
+ String defaultValue, boolean isMandatory, boolean needsExtra) {
+ this.shortName = shortName;
+ this.longName = longName;
+ this.key = (shortName.isEmpty() ? "" : "-" + shortName + ", ") + "--"
+ + longName;
+ this.description = description;
+ this.defaultValue = defaultValue;
+ this.currentValue = this.defaultValue;
+ this.isMandatory = isMandatory;
+ this.needsExtra = needsExtra;
this.isInCommandLine = false;
}
return key;
}
- public String getShortName() {
+ public String getShortName() {
return shortName;
}
public void setCurrentValue(String value) {
currentValue = value;
}
+
public String getCurrentValue() {
return currentValue;
}
public AddOptions(String shortName, String longName, String description,
String defaultValue, boolean isMandatory, boolean needsExtra) {
- super(shortName, longName, description, defaultValue, isMandatory, needsExtra);
+ super(shortName, longName, description, defaultValue, isMandatory,
+ needsExtra);
}
public boolean checkExtraArg(String arg) {
class Actions {
// global options
- public final static String OP_HELP = "help";
- public final static String OP_SILENT = "silent";
- public final static String OP_VERBOSE = "verbose";
+ public final static String OP_HELP = "help";
+ public final static String OP_SILENT = "silent";
+ public final static String OP_VERBOSE = "verbose";
// actions
- public final static String AC_GLOBAL = "global";
- public final static String AC_LIST_VM = "list-vm";
- public final static String AC_LIST_IMAGE = "list-image";
- public final static String AC_CREATE = "create";
- public final static String AC_DETAIL = "detail";
- public final static String AC_DELETE = "delete";
- public final static String AC_MODIFY = "modify";
- public final static String AC_COLONE = "clone";
- public final static String AC_RESET = "reset";
- public final static String AC_LAUNCH = "launch";
- public final static String AC_CREATE_IMAGE = "create-image";
-
- public final static String AC_WORKSPACE = "workspace";
-
- public final static String AC_REMOTE_CREATE = "remote-create";
- public final static String AC_REMOTE_LAUNCH = "remote-launch";
- public final static String AC_REMOTE_LIST_VM = "remote-list-vm";
- public final static String AC_REMOTE_DELETE = "remote-delete";
- public final static String AC_REMOTE_MODIFY = "remote-modify";
- public final static String AC_REMOTE_CLONE = "remote-clone";
- public final static String AC_REMOTE_RESET = "remote-reset";
- public final static String AC_REMOTE_LIST_IMAGE = "remote-list-image";
- public final static String AC_REMOTE_CREATE_IMAGE = "remote-create-image";
- public final static String AC_REMOTE_DETAIL = "remote-detail";
- public final static String AC_REMOTE_WORKSPACE = "remote-workspace";
- public final static String OP_USER_ACCOUNT = "user-account";
- public final static String OP_IP = "ip";
- public final static String OP_SPICE_PORT = "spice";
- public final static String OP_SDK_PATH_NUM = "sdk-path-num";
-
- // action options
- public final static String OP_STANDARD = "standard";
- public final static String OP_CUSTOM = "custom";
- public final static String OP_SET = "set";
- public final static String OP_GET = "get";
- public final static String OP_NAME = "name";
- public final static String OP_DETAIL = "detail";
- public final static String OP_PATH = "custom-path";
- public final static String OP_PLATFORM = "platform";
- public final static String OP_BASE = "base-id";
- public final static String OP_TARGET = "target-name";
- public final static String OP_TEST = "test";
- public final static String OP_COUNT = "count";
-
- public final static String OP_RESOLUTION = "resolution";
- public final static String OP_DPI = "dpi";
- public final static String OP_SKIN = "skin";
- public final static String OP_KEYTYPE = "key-type";
- public final static String OP_RAM = "ram-size";
- public final static String OP_FILESHARE = "file-sharing";
- public final static String OP_FILESHAREPATH = "file-sharing-path";
- public final static String OP_VIRTUALIZATION = "hw-virtualization";
- public final static String OP_MAXTOUCH = "max-touch-point";
- public final static String OP_ADDOPTION = "add-options";
- public final static String OP_GLACCELERATION = "hw-gl-acceleration";
-}
+ public final static String AC_GLOBAL = "global";
+ public final static String AC_LIST_VM = "list-vm";
+ public final static String AC_LIST_IMAGE = "list-image";
+ public final static String AC_CREATE = "create";
+ public final static String AC_DETAIL = "detail";
+ public final static String AC_DELETE = "delete";
+ public final static String AC_MODIFY = "modify";
+ public final static String AC_COLONE = "clone";
+ public final static String AC_RESET = "reset";
+ public final static String AC_LAUNCH = "launch";
+ public final static String AC_CREATE_IMAGE = "create-image";
+
+ public final static String AC_WORKSPACE = "workspace";
+
+ public final static String AC_REMOTE_CREATE = "remote-create";
+ public final static String AC_REMOTE_LAUNCH = "remote-launch";
+ public final static String AC_REMOTE_LIST_VM = "remote-list-vm";
+ public final static String AC_REMOTE_DELETE = "remote-delete";
+ public final static String AC_REMOTE_MODIFY = "remote-modify";
+ public final static String AC_REMOTE_CLONE = "remote-clone";
+ public final static String AC_REMOTE_RESET = "remote-reset";
+ public final static String AC_REMOTE_LIST_IMAGE = "remote-list-image";
+ public final static String AC_REMOTE_CREATE_IMAGE = "remote-create-image";
+ public final static String AC_REMOTE_DETAIL = "remote-detail";
+ public final static String AC_REMOTE_WORKSPACE = "remote-workspace";
+ public final static String OP_USER_ACCOUNT = "user-account";
+ public final static String OP_IP = "ip";
+ public final static String OP_SPICE_PORT = "spice";
+ public final static String OP_SDK_PATH_NUM = "sdk-path-num";
+
+ // action options
+ public final static String OP_STANDARD = "standard";
+ public final static String OP_CUSTOM = "custom";
+ public final static String OP_SET = "set";
+ public final static String OP_GET = "get";
+ public final static String OP_NAME = "name";
+ public final static String OP_DETAIL = "detail";
+ public final static String OP_PATH = "custom-path";
+ public final static String OP_PLATFORM = "platform";
+ public final static String OP_BASE = "base-id";
+ public final static String OP_TARGET = "target-name";
+ public final static String OP_TEST = "test";
+ public final static String OP_COUNT = "count";
+
+ public final static String OP_RESOLUTION = "resolution";
+ public final static String OP_DPI = "dpi";
+ public final static String OP_SKIN = "skin";
+ public final static String OP_KEYTYPE = "key-type";
+ public final static String OP_RAM = "ram-size";
+ public final static String OP_FILESHARE = "file-sharing";
+ public final static String OP_FILESHAREPATH = "file-sharing-path";
+ public final static String OP_VIRTUALIZATION = "hw-virtualization";
+ public final static String OP_MAXTOUCH = "max-touch-point";
+ public final static String OP_ADDOPTION = "add-options";
+ public final static String OP_GLACCELERATION = "hw-gl-acceleration";
+
+ public final static String DESC_HELP = "Display information of specific command.";
+ public final static String DESC_VERVOSE = "Display information running emulator-manager's state";
+ public final static String DESC_DETAIL = "Display more information of VMs.";
+ public final static String DESC_COUNT = "Display count of vm list (only display number).";
+ public final static String DESC_USER_ACCOUNT = "User account of remote.";
+ public final static String DESC_IP = "IP address of remote.";
+ public final static String DESC_SDK_PATH_NUM = "SDK path number of remote.";
+ public final static String DESC_INQUIRY_NAME = "Name of virtual machine."
+ + StringResources.NEW_LINE
+ + " If you do not enter a name, emulator manager's information is printed.";
+ public final static String DESC_NAME = "Name of new VM.";
+ public final static String DESC_NAME_MOD = "Name of VM.";
+ public final static String DESC_LAUNCH_NAME = "Name of VM to start.";
+ public final static String DESC_DELETE_NAME = "Name of VM to delete.";
+ public final static String DESC_RESET_NAME = "Name of VM to reset image.";
+ public final static String DESC_EXPORT_NAME = "Name of VM to create base target image.";
+ public final static String DESC_BASE = "Select ID of base disk image."
+ + StringResources.NEW_LINE
+ + "\t\t(Avaliable disk image can be found using 'list-image' command)";
+ public final static String DESC_PATH = "Select path of base target image.";
+ public final static String DESC_LAUNCH_PATH = "Setting path of emulator program.";
+ public final static String DESC_EXPORT_PATH = "Setting Location to generate base target image.";
+ public final static String DESC_PLATFORM = "Select Platform of base disk image."
+ + StringResources.NEW_LINE
+ + "\t\t(Avaliable disk image can be found using 'list-image' command)";
+ public final static String DESC_RESOLUTION = resolutionDescription();
+ public final static String DESC_DPI = "DPI. (100 ~ 480)";
+ public final static String DESC_SKIN = "Select skin style (1:Generalpurpose, 2:Profile-specific)";
+ public final static String DESC_RAM = ramSizeDescription();
+ public final static String DESC_FILESHAREPATH = "File sharing path. If path is \"\", file sharing is disabled";
+ public final static String DESC_VIRTUALIZATION = "Select enable or disable hardware virtualization.(yes | no)";
+ public final static String DESC_GLACCELERATION = "Select enable or disable hardware GL acceleration.(yes | no)";
+ public final static String DESC_ADDOPTION = "Add other qemu's options.";
+ public final static String DESC_TEST = "Print parameters of emulator without executing emulator.";
+ public final static String DESC_SPICE_PORT = "Enable spice mode";
+
+ public final static String DEFAULT_BASE = "ID of standard image in each platform";
+ public final static String DEFAULT_SKIN = "(Profile dependent)";
+
+ public static String resolutionDescription() {
+ String resolution = "";
+ for (RESOLUTION r : RESOLUTION.values()) {
+ if (!r.getType().isEmpty()) {
+ resolution += (r.getType() + " | ");
+ } else {
+ resolution += (r.getStrValue() + " | ");
+ }
+ }
+ resolution = resolution.substring(0, resolution.length() - 3);
+
+ return "Resolution of vm. ("
+ + resolution
+ + ")"
+ + StringResources.NEW_LINE
+ + "\t\t(Custom resolution is supported as experimental feature."
+ + " Range is from 320 to 1920).";
+ }
+ public static String ramSizeDescription() {
+ String ram = "";
+ for (RAM_SIZE size : RAM_SIZE.values()) {
+ ram += (size.toString() + " | ");
+ }
+ ram = ram.substring(0, ram.length() - 3);
+ return "RAM size. (" + ram + ")";
+ }
+}
this.usage ="";
commandList.add(new Command("h", Actions.OP_HELP,
- "Display information of specific command.", "", false, false));
+ Actions.DESC_HELP, "", false, false));
commandList.add(new Command("v", Actions.OP_VERBOSE,
- "Display information running emulator-manager's state", "", false ,false));
+ Actions.DESC_VERVOSE, "", false ,false));
}
public boolean process() {
this.usage = "list-vm [options]";
commandList.add(new Command("d", Actions.OP_DETAIL,
- "Display more information of VMs.","", false, false));
+ Actions.DESC_DETAIL, "", false, false));
commandList.add(new Command("c", Actions.OP_COUNT,
- "Display count of vm list (only display number).", "", false, false));
+ Actions.DESC_COUNT, "", false, false));
}
@Override
this.usage = "remote-list-vm -e ip -u account [options]";
commandList.add(new Command("d", Actions.OP_DETAIL,
- "Display more information of VMs.","", false, false));
+ Actions.DESC_DETAIL, "", false, false));
commandList.add(new Command("c", Actions.OP_COUNT,
- "Display count of vm list (only display number).", "", false, false));
+ Actions.DESC_COUNT, "", false, false));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
}
@Override
this.usage = "remote-list-image -e ip -u account [options]";
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
}
@Override
this.usage = "detail -n test";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of virtual machine." + StringResources.NEW_LINE +
- " If you do not enter a name, emulator manager's information is printed.","", false, true));
+ Actions.DESC_INQUIRY_NAME,"", false, true));
}
@Override
this.usage = "remote-detail -n test -e ip -u account [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of virtual machine.\n" +
- " If you do not enter a name, emulator manager's information is printed.","", false, true));
+ Actions.DESC_INQUIRY_NAME,"", false, true));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "1", false, true));
+ Actions.DESC_SDK_PATH_NUM, "1", false, true));
}
@Override
" You can not use both '-b' and '-c' at the same time.";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of new VM.", "", true, true));
+ Actions.DESC_NAME, "", true, true));
// b : standard image
// p : custom image
commandList.add(new Command("b", Actions.OP_BASE,
- "Select ID of base disk image." + StringResources.NEW_LINE +
- "\t\t(Avaliable disk image can be found using 'list-image' command)",
- "ID of standard image in each platform", false, true));
+ Actions.DESC_BASE, Actions.DEFAULT_BASE, false, true));
commandList.add(new Command("c", Actions.OP_PATH,
- "Select path of base target image.", "", false, true));
-
+ Actions.DESC_PATH, "", false, true));
commandList.add(new Command("p", Actions.OP_PLATFORM,
- "Select Platform of base disk image." + StringResources.NEW_LINE +
- "\t\t(Avaliable disk image can be found using 'list-image' command)",
- "mobile-2.4", false, true));
+ Actions.DESC_PLATFORM,
+ "", false, true));
// Options
- String resolution = "";
- for (RESOLUTION r : RESOLUTION.values()) {
- if (!r.getType().isEmpty()) {
- resolution += (r.getType() + " | ");
- } else {
- resolution += (r.getStrValue() + " | ");
- }
- }
- resolution = resolution.substring(0, resolution.length() - 3);
commandList.add(new Command("r", Actions.OP_RESOLUTION,
- "Resolution of vm. (" + resolution + ")" + StringResources.NEW_LINE +
- "\t\t(Custom resolution is supported as experimental feature." +
- " Range is from 320 to 1920)."
+ Actions.DESC_RESOLUTION
, RESOLUTION.HD.getType(), false, true));
commandList.add(new Command("d", Actions.OP_DPI,
- "DPI. (100 ~ 480)", Integer.toString(RESOLUTION.HD.getDPI()), false, true));
+ Actions.DESC_DPI, Integer.toString(RESOLUTION.HD.getDPI()), false, true));
/** TODO : resolution and skin..***********************************************/
/*
*/
commandList.add(new Command("k", Actions.OP_SKIN,
- "Select skin style ( Generalpurpose | Phone 720x1280 )", "1", false, true));
+ Actions.DESC_SKIN, Actions.DEFAULT_SKIN, false, true));
/*****************************************************************************/
- /*
- commandList.add(new Command("k", Actions.OP_KEYTYPE,
- "Skin'front button type. (1 | 3)", Integer.toString(property.keyType), false, true));
- */
- String ram = "";
- for (RAM_SIZE size : RAM_SIZE.values()) {
- ram += (size.toString() + " | ");
- }
- ram = ram.substring(0, ram.length() - 3);
- commandList.add(new Command("s", Actions.OP_RAM,
- "RAM size. (" + ram + ")", RAM_SIZE.RAM512.toString(), false, true));
+// commandList.add(new Command("k", Actions.OP_KEYTYPE,
+// "Skin'front button type. (1 | 3)", Integer.toString(property.keyType), false, true));
- commandList.add(new Command("f", Actions.OP_FILESHAREPATH,
- "File sharing path. If path is \"\", file sharing is disabled",
- "", false, true));
+ commandList.add(new Command("s", Actions.OP_RAM,
+ Actions.DESC_RAM, RAM_SIZE.RAM512.toString(), false, true));
+ commandList.add(new Command("f", Actions.OP_FILESHAREPATH,
+ Actions.DESC_FILESHAREPATH, "", false, true));
commandList.add(new Command("v", Actions.OP_VIRTUALIZATION,
- "Select enable or disable hardware virtualization.(yes | no)",
+ Actions.DESC_VIRTUALIZATION,
CheckVirtualization.getInstance().isSupportVirtualization() ? "yes" : "no", false, true));
commandList.add(new Command("g", Actions.OP_GLACCELERATION,
- "Select enable or disable hardware GL acceleration.(yes | no)",
+ Actions.DESC_GLACCELERATION,
CheckVirtualization.getInstance().isSupportGPU() ? "yes" : "no", false, true));
/*
commandList.add(new Command("t", Actions.OP_MAXTOUCH,
"Set count of multi touch point.(1 ~ 3)", Integer.toString(property.maxTouchCount), false, true));
*/
commandList.add(new AddOptions("a", Actions.OP_ADDOPTION,
- "Add other qemu's options.", "", false, true));
+ Actions.DESC_ADDOPTION, "", false, true));
}
@Override
// b : standard image
// p : custom image
commandList.add(new Command("b", Actions.OP_BASE,
- "Select ID of base disk image.\n\t\t(Avaliable disk image can be found using 'list-image' command)",
- "", false, true));
+ Actions.DESC_BASE, "", false, true));
commandList.add(new Command("p", Actions.OP_PATH,
- "Select path of base target image.", "", false, true));
-
+ Actions.DESC_PATH, "", false, true));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
-
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
-
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
}
@Override
public boolean process() {
this.usage = "modify -n test [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM.", "", true, true));
+ Actions.DESC_NAME_MOD, "", true, true));
// Options
- String resolution = "";
- for (RESOLUTION r : RESOLUTION.values()) {
- if (!r.getType().isEmpty()) {
- resolution += (r.getType() + " | ");
- } else {
- resolution += (r.getStrValue() + " | ");
- }
- }
- resolution = resolution.substring(0, resolution.length() - 3);
commandList.add(new Command("r", Actions.OP_RESOLUTION,
- "Resolution of vm. (" + resolution + ")" + StringResources.NEW_LINE +
- "\t\t(Custom resolution is supported as experimental feature." +
- " Range is from 320 to 1920)."
- , RESOLUTION.HD.getType(), false, true));
+ Actions.DESC_RESOLUTION, RESOLUTION.HD.getType(), false, true));
commandList.add(new Command("d", Actions.OP_DPI,
- "DPI. (100 ~ 480)", Integer.toString(RESOLUTION.HD.getDPI()), false, true));
+ Actions.DESC_DPI, Integer.toString(RESOLUTION.HD.getDPI()), false, true));
/** TODO : resolution and skin..***********************************************/
/*
*/
commandList.add(new Command("k", Actions.OP_SKIN,
- "Select skin style ( Generalpurpose | Phone 720x1280 )", "1", false, true));
+ Actions.DESC_SKIN, Actions.DEFAULT_SKIN, false, true));
/*****************************************************************************/
/*
"Skin'front button type. (1 | 3)", Integer.toString(property.keyType), false, true));
*/
- String ram = "";
- for (RAM_SIZE size : RAM_SIZE.values()) {
- ram += (size.toString() + " | ");
- }
- ram = ram.substring(0, ram.length() - 3);
commandList.add(new Command("s", Actions.OP_RAM,
- "RAM size. (" + ram + ")", RAM_SIZE.RAM512.toString(), false, true));
-
+ Actions.DESC_RAM, RAM_SIZE.RAM512.toString(), false, true));
commandList.add(new Command("f", Actions.OP_FILESHAREPATH,
- "File sharing path. If path is \"\", file sharing is disabled",
- "", false, true));
-
+ Actions.DESC_FILESHAREPATH, "", false, true));
commandList.add(new Command("v", Actions.OP_VIRTUALIZATION,
- "Select enable or disable hardware virtualization.(yes | no)",
+ Actions.DESC_VIRTUALIZATION,
CheckVirtualization.getInstance().isSupportVirtualization() ? "yes" : "no", false, true));
commandList.add(new Command("g", Actions.OP_GLACCELERATION,
- "Select enable or disable hardware GL acceleration.(yes | no)",
+ Actions.DESC_GLACCELERATION,
CheckVirtualization.getInstance().isSupportGPU() ? "yes" : "no", false, true));
/*
commandList.add(new Command("t", Actions.OP_MAXTOUCH,
"Set count of multi touch point.(1 or 2)", Integer.toString(property.maxTouchCount), false, true));
*/
commandList.add(new AddOptions("a", Actions.OP_ADDOPTION,
- "Add other qemu's options.", "", false, true));
+ Actions.DESC_ADDOPTION, "", false, true));
}
@Override
"Resolution of vm.", "", false, true));
commandList.add(new Command("d", Actions.OP_DPI,
"DPI. (100 ~ 480)", "", false, true));
-
commandList.add(new Command("k", Actions.OP_SKIN,
"Select skin style ( Generalpurpose | Phone 720x1280 )", "", false, true));
-
commandList.add(new Command("s", Actions.OP_RAM,
"RAM size.", "", false, true));
-
- if (!EmulatorManager.isMac()) {
commandList.add(new Command("f", Actions.OP_FILESHAREPATH,
- "File sharing path. If path is \"\", file sharing is disabled",
- "", false, true));
- }
+ Actions.DESC_FILESHAREPATH, "", false, true));
commandList.add(new Command("v", Actions.OP_VIRTUALIZATION,
- "Select enable or disable hardware virtualization.(yes | no)",
- "", false, true));
+ Actions.DESC_VIRTUALIZATION, "", false, true));
commandList.add(new Command("g", Actions.OP_GLACCELERATION,
- "Select enable or disable hardware GL acceleration.(yes | no)",
- "", false, true));
-
+ Actions.DESC_GLACCELERATION, "", false, true));
commandList.add(new AddOptions("a", Actions.OP_ADDOPTION,
- "Add other qemu's options.", "", false, true));
+ Actions.DESC_ADDOPTION, "", false, true));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
}
@Override
this.usage = "launch -n test [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM to start.","", true, true));
-
+ Actions.DESC_LAUNCH_NAME,"", true, true));
commandList.add(new Command("p", Actions.OP_PATH,
- "Setting path of emulator program.",
- FilePathResources.getBinPath(), false, true));
-
+ Actions.DESC_LAUNCH_PATH, FilePathResources.getBinPath(), false, true));
commandList.add(new Command("t", Actions.OP_TEST,
- "Print parameters of emulator without executing emulator.",
- "", false, false));
+ Actions.DESC_TEST, "", false, false));
/*
commandList.add(new Command("c", Actions.OP_COMPACT,
"Compact output(It does not print arguments of emulator.)", "", false, false));
*/
-
commandList.add(new Command("s", Actions.OP_SPICE_PORT,
- "Enable spice mode",
- "", false, false));
+ Actions.DESC_SPICE_PORT, "", false, false));
}
@Override
this.usage = "remote-launch -n test -e ip -u account [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM to start.","", true, true));
-
+ Actions.DESC_LAUNCH_NAME,"", true, true));
commandList.add(new Command("p", Actions.OP_PATH,
- "Setting path of emulator program.",
- FilePathResources.getBinPath(), false, true));
-
+ Actions.DESC_LAUNCH_PATH, FilePathResources.getBinPath(), false, true));
commandList.add(new Command("t", Actions.OP_TEST,
- "Print parameters of emulator without executing emulator.",
- "", false, false));
-
+ Actions.DESC_TEST, "", false, false));
commandList.add(new Command("s", Actions.OP_SPICE_PORT,
- "Enable spice port",
- "", false, false));
-
+ Actions.DESC_SPICE_PORT, "", false, false));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
-
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
-
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
/*
commandList.add(new Command("c", Actions.OP_COMPACT,
"Compact output(It does not print arguments of emulator.)", "", false, false));
this.usage = "remote-delete -n test -e ip -u account [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM to delete.","", true, true));
+ Actions.DESC_DELETE_NAME, "", true, true));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
}
@Override
this.usage = "reset -n test";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM to reset image.","", true, true));
+ Actions.DESC_RESET_NAME, "", true, true));
}
@Override
this.usage = "remote-reset -n test -e ip -u account [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM to reset image.","", true, true));
+ Actions.DESC_RESET_NAME, "", true, true));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
}
@Override
this.usage = "create-image -n test [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM to create base target image.","", true, true));
+ Actions.DESC_EXPORT_NAME,"", true, true));
commandList.add(new Command("p", Actions.OP_PATH,
- "Setting Location to generate base target image.",
+ Actions.DESC_EXPORT_PATH,
FilePathResources.getTizenSdkDataEmulatorPath(), false, true));
}
this.usage = "remote-create-image -n test -e ip -u account [options]";
commandList.add(new Command("n", Actions.OP_NAME,
- "Name of VM to create base target image.","", true, true));
+ Actions.DESC_EXPORT_NAME,"", true, true));
commandList.add(new Command("p", Actions.OP_PATH,
- "Setting Location to generate base target image.",
- "", false, true));
+ Actions.DESC_EXPORT_PATH, "", false, true));
commandList.add(new Command("u", Actions.OP_USER_ACCOUNT,
- "User account of remote.", "", true, true));
+ Actions.DESC_USER_ACCOUNT, "", true, true));
commandList.add(new Command("e", Actions.OP_IP,
- "IP address of remote.", "", true, true));
+ Actions.DESC_IP, "", true, true));
commandList.add(new Command("l", Actions.OP_SDK_PATH_NUM,
- "SDK path number of remote.", "", false, true));
+ Actions.DESC_SDK_PATH_NUM, "", false, true));
}
@Override