[Title] remove unnecessary process in web-install
authorTaeyoung Son <taeyoung2.son@samsung.com>
Mon, 1 Jul 2013 09:19:00 +0000 (18:19 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Mon, 1 Jul 2013 09:20:08 +0000 (18:20 +0900)
            - setting developer mode option is removed
[Desc.]
[Issue]

Change-Id: I8f7fe8593ba82f9c17e34e2d0b57f2a3b9fb2829

org.tizen.cli/src/org/tizen/cli/exec/install/Main.java

index 7f2d550..ea23ed3 100644 (file)
 */
 package org.tizen.cli.exec.install;
 
-import org.apache.commons.cli.CommandLine;
-import org.apache.commons.cli.OptionBuilder;
-import org.apache.commons.cli.Options;
-
-import static org.tizen.cli.exec.LaunchOptionConstants.OPT_WIDGETFILE;
-import static org.tizen.cli.exec.LaunchOptionConstants.OPT_WIDGETID;
-import static org.tizen.cli.exec.LaunchOptionConstants.DESC_WIDGETID;
-import static org.tizen.cli.exec.LaunchOptionConstants.DESC_WIDGETFILE;
 import static org.tizen.cli.exec.LaunchOptionConstants.DESC_FAILED_CANNOT_FIND_CONNECTED_DEVICE;
 import static org.tizen.cli.exec.LaunchOptionConstants.DESC_FAILED_CANNOT_FIND_SELECTED_DEVICE;
+import static org.tizen.cli.exec.LaunchOptionConstants.DESC_WIDGETFILE;
+import static org.tizen.cli.exec.LaunchOptionConstants.DESC_WIDGETID;
+import static org.tizen.cli.exec.LaunchOptionConstants.OPT_WIDGETFILE;
+import static org.tizen.cli.exec.LaunchOptionConstants.OPT_WIDGETID;
 
+import org.apache.commons.cli.CommandLine;
+import org.apache.commons.cli.OptionBuilder;
+import org.apache.commons.cli.Options;
 import org.tizen.cli.exec.Help;
 import org.tizen.cli.exec.WRTLauncher;
 import org.tizen.common.core.command.Executor;
@@ -49,7 +48,6 @@ import org.tizen.common.util.StringUtil;
 import org.tizen.web.zimlaunch.cli.command.CheckInstallCommand;
 import org.tizen.web.zimlaunch.cli.command.InstallCommand;
 import org.tizen.web.zimlaunch.cli.command.KillCommand;
-import org.tizen.web.zimlaunch.cli.command.ModeCommnad;
 
 /**
  * Command Line Interface for install widget in target
@@ -133,10 +131,6 @@ extends WRTLauncher
         PushSdbCommand push_command = new PushSdbCommand( filePath, remotePath );
         push_command.setDevice( getDevice() );
 
-        ModeCommnad mode_command = new ModeCommnad();
-        mode_command.setDevice( getDevice() );
-        mode_command.setTime( getTime() );
-
         // widget push
         logger.trace( "push command");
         exec.execute( push_command );
@@ -144,13 +138,6 @@ extends WRTLauncher
             exit ( 1 );
         }
 
-        // widget mode
-        logger.trace( "mode command");
-        exec.execute( mode_command );
-        if ( mode_command.getResult().contains( "Failed" ) ) {
-            exit ( 1 );
-        }
-
         if ( !StringUtil.isEmpty( widgetId ) ) {
             logger.trace( "same widget's pre-install check and kill process" );
             CheckInstallCommand check_install_cmd = new CheckInstallCommand( widgetId );