logger.trace( "same widget's pre-install check and kill process" );
CheckInstallCommand check_install_cmd = new CheckInstallCommand( widgetId );
check_install_cmd.setDevice( getDevice() );
+ check_install_cmd.setPrintOption( false );
exec.execute( check_install_cmd );
if ( check_install_cmd.isInstalled() ) {
KillCommand kill_cmd = new KillCommand( widgetId );
+ kill_cmd.setPrintOption( false );
kill_cmd.setDevice( getDevice() );
exec.execute( kill_cmd );
}
import org.apache.commons.cli.CommandLine;
import org.tizen.cli.exec.WRTLauncher;
-import org.tizen.common.core.command.Prompter;
import org.tizen.web.launch.cli.command.QueryCommand;
/**
{
super.execute( cmdLine );
- final Prompter prompter = getPrompter();
-
// device not connect then exit
if ( getDevice() == null ) {
endSDB();
QueryCommand command = new QueryCommand();
command.setDevice( getDevice() );
getExecutor().execute( command );
- prompter.notify( command.getResult() );
endSDB();
}
// device not connect then exit
if ( getDevice() == null ) {
- prompter.notify( "Process is stoped, please select connect device" );
+ endSDB();
return ;
}
// install check
CheckInstallCommand install_check_command = new CheckInstallCommand( widgetID );
+ install_check_command.setDevice( getDevice() );
+ install_check_command.setPrintOption( false );
exec.execute( install_check_command );
if ( !install_check_command.isInstalled() ) {
prompter.notify(
- MessageFormat.format( "Process is stoped, [{0}] widget is not installed", widgetID )
+ MessageFormat.format( "Uninstall failed, [{0}] widget is not installed", widgetID )
);
+ endSDB();
return ;
}
// kill
KillCommand kill_command = new KillCommand( widgetID );
+ kill_command.setDevice( getDevice() );
exec.execute( kill_command );
// uninstall
UninstallCommand uninstall_command = new UninstallCommand( widgetID );
+ uninstall_command.setDevice( getDevice() );
exec.execute( uninstall_command );
+
+ endSDB();
}
/* (non-Javadoc)