*/
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;
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
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 );
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 );