Package: emulator-manager
-Version: 1.0.19
+Version: 1.0.20
OS: linux
Build-host-os: linux
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
Description: Tizen Emulator Manager
Package: emulator-manager
-Version: 1.0.19
+Version: 1.0.20
OS: windows
Build-host-os: windows
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
package org.tizen.emulator.manager;
+import javax.swing.JOptionPane;
import org.eclipse.swt.widgets.Display;
import org.tizen.emulator.manager.tool.FileIO;
import org.tizen.emulator.manager.ui.MainDialog;
public static void main(String[] args) {
if(args.length > 0) {
- EmulatorVMs.getInstance().setVMsBaseDirectory(args[0]);
+ for(int i = 0; i < args.length; i++) {
+ if(args[i].equals("--workspace") || args[i].equals("-w")) {
+ if(args.length == i + 1) {
+ JOptionPane.showMessageDialog(null, "You didn't input workspace path after command line option --workspace or -w\n"
+ + "Emulator Manager sets in default workspace.");
+ break;
+ }
+ EmulatorVMs.getInstance().setVMsBaseDirectory(args[i+1]);
+ break;
+ }
+ }
}
else {
EmulatorVMs.getInstance().setVMsBaseDirectory(FileIO.getInstance().getTizenVmsPath());