From 904d9ac4655b02df931672da1d45f418897e4948 Mon Sep 17 00:00:00 2001 From: "gyeongseok.seo" Date: Fri, 14 Dec 2012 18:08:31 +0900 Subject: [PATCH] [Title] Fixed CLI's string value inspection. [Desc.] [Issue] Change-Id: Ieb9cbedaa3cee99306e62a97a2c8bab6611d9ad8 --- .../src/org/tizen/common/core/command/sdb/ForwardSdbCommand.java | 4 ++-- .../src/org/tizen/common/core/command/sdb/PullSdbCommand.java | 2 +- .../src/org/tizen/common/core/command/sdb/PushSdbCommand.java | 8 ++++---- .../src/org/tizen/common/core/command/sdb/ShellSdbCommand.java | 2 +- .../src/org/tizen/common/core/command/zip/ZipCommand.java | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/org.tizen.common/src/org/tizen/common/core/command/sdb/ForwardSdbCommand.java b/org.tizen.common/src/org/tizen/common/core/command/sdb/ForwardSdbCommand.java index 11540d8..08ff6ee 100644 --- a/org.tizen.common/src/org/tizen/common/core/command/sdb/ForwardSdbCommand.java +++ b/org.tizen.common/src/org/tizen/common/core/command/sdb/ForwardSdbCommand.java @@ -50,7 +50,7 @@ extends SdbDevicesHandlingCommand device.createForward( localPort, remotePort ); } catch (Exception e) { // TODO Message fix need - context.getPrompter().notify( "forward socket connections error" ); + context.getPrompter().notify( "Forward socket connections error." ); } } @@ -64,7 +64,7 @@ extends SdbDevicesHandlingCommand device.removeForward( localPort, remotePort ); } catch (Exception e) { // TODO Message fix need - context.getPrompter().notify( "remove forward socket connections error" ); + context.getPrompter().notify( "Remove forward socket connections error." ); } } } diff --git a/org.tizen.common/src/org/tizen/common/core/command/sdb/PullSdbCommand.java b/org.tizen.common/src/org/tizen/common/core/command/sdb/PullSdbCommand.java index 9257298..c9ee84e 100644 --- a/org.tizen.common/src/org/tizen/common/core/command/sdb/PullSdbCommand.java +++ b/org.tizen.common/src/org/tizen/common/core/command/sdb/PullSdbCommand.java @@ -72,7 +72,7 @@ extends SdbDevicesHandlingCommand service.pullFile( remotePath, localPath, getProgressMonitor() ); if ( syncSuccess.getCode() != SyncService.RESULT_OK ) { // TODO Message fix need - context.getPrompter().notify( "transfer error" ); + context.getPrompter().notify( "Error: Failed to Transfer." ); } } catch (Exception e) { throw new IllegalStateException( e ); diff --git a/org.tizen.common/src/org/tizen/common/core/command/sdb/PushSdbCommand.java b/org.tizen.common/src/org/tizen/common/core/command/sdb/PushSdbCommand.java index 46db4c4..e8db4b6 100644 --- a/org.tizen.common/src/org/tizen/common/core/command/sdb/PushSdbCommand.java +++ b/org.tizen.common/src/org/tizen/common/core/command/sdb/PushSdbCommand.java @@ -73,12 +73,12 @@ extends SdbDevicesHandlingCommand service.pushFile( localPath, remotePath, getProgressMonitor() ); String name = FilenameUtil.getFilename( localPath ); if ( syncSuccess.getCode() != SyncService.RESULT_OK ) { - setResult( "failed" ); - context.getPrompter().notify( name + " file transfer failed" ); + setResult( "Failed" ); + context.getPrompter().notify( "'" + name + "' file transfer failed." ); return ; } - setResult( "success" ); - context.getPrompter().notify( name + " file transfer success" ); + setResult( "Success" ); + context.getPrompter().notify( "'" + name + "' file transfer successful." ); } catch (Exception e) { throw new IllegalStateException( e ); } diff --git a/org.tizen.common/src/org/tizen/common/core/command/sdb/ShellSdbCommand.java b/org.tizen.common/src/org/tizen/common/core/command/sdb/ShellSdbCommand.java index bdbdb32..647ef49 100644 --- a/org.tizen.common/src/org/tizen/common/core/command/sdb/ShellSdbCommand.java +++ b/org.tizen.common/src/org/tizen/common/core/command/sdb/ShellSdbCommand.java @@ -167,7 +167,7 @@ extends SdbDevicesHandlingCommand device.executeShellCommand( command, createMultiLineReceiver(), getTime()*1000 ); } catch ( Exception e ) { if ( isPrintOption() ) { - String msg = "operatrion failed"; + String msg = "Operation failed."; context.getPrompter().notify( msg ); } throw e; diff --git a/org.tizen.common/src/org/tizen/common/core/command/zip/ZipCommand.java b/org.tizen.common/src/org/tizen/common/core/command/zip/ZipCommand.java index 1d653ab..3f9b452 100755 --- a/org.tizen.common/src/org/tizen/common/core/command/zip/ZipCommand.java +++ b/org.tizen.common/src/org/tizen/common/core/command/zip/ZipCommand.java @@ -108,7 +108,7 @@ extends FileHandlingCommand final MessagePolicy messagePolicy = policy.adapt( MessagePolicy.class ); - messagePolicy.print( context.getPrompter(), "{0} doesn't exist", baseDir ); + messagePolicy.print( context.getPrompter(), "{0} doesn't exist.", baseDir ); return ; } @@ -117,7 +117,7 @@ extends FileHandlingCommand final Policy policy = context.getPolicy( EXIST_OUT_WGT ); final MessagePolicy messagePolicy = policy.adapt( MessagePolicy.class ); - messagePolicy.print( context.getPrompter(), "Widget already exists" ); + messagePolicy.print( context.getPrompter(), "Widget already exist." ); final FilePolicy filePolicy = policy.adapt( FilePolicy.class ); @@ -147,7 +147,7 @@ extends FileHandlingCommand try { handler.write( path, new ByteArrayInputStream( byteOut.toByteArray() ) ); - context.getPrompter().notify( MessageFormat.format( "Widget[{0}] is created successfully ", path ) ); + context.getPrompter().notify( MessageFormat.format( "Widget( {0} ) is created successfully.", path ) ); } catch ( IOException e ) { -- 2.7.4