You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2013/05/24 18:26:54 UTC

git commit: The blob read operation should print to STDOUT.

Updated Branches:
  refs/heads/master 9dcae346e -> 698274915


The blob read operation should print to STDOUT.

The Blob read operation accepts a --display option, which causes it
to print the contents of the blob. However, the contents are printed
to STDERR, as opposed to STDOUT.


Project: http://git-wip-us.apache.org/repos/asf/incubator-jclouds-karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-jclouds-karaf/commit/69827491
Tree: http://git-wip-us.apache.org/repos/asf/incubator-jclouds-karaf/tree/69827491
Diff: http://git-wip-us.apache.org/repos/asf/incubator-jclouds-karaf/diff/69827491

Branch: refs/heads/master
Commit: 698274915000015656d05ccdadcc79942303c17f
Parents: 9dcae34
Author: Timur Alperovich <ti...@maginatics.com>
Authored: Thu May 23 14:39:58 2013 -0700
Committer: Andrew Gaul <ga...@apache.org>
Committed: Fri May 24 09:24:15 2013 -0700

----------------------------------------------------------------------
 .../karaf/commands/blobstore/BlobReadCommand.java  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-jclouds-karaf/blob/69827491/commands/src/main/java/org/jclouds/karaf/commands/blobstore/BlobReadCommand.java
----------------------------------------------------------------------
diff --git a/commands/src/main/java/org/jclouds/karaf/commands/blobstore/BlobReadCommand.java b/commands/src/main/java/org/jclouds/karaf/commands/blobstore/BlobReadCommand.java
index a4ac6ba..39402de 100644
--- a/commands/src/main/java/org/jclouds/karaf/commands/blobstore/BlobReadCommand.java
+++ b/commands/src/main/java/org/jclouds/karaf/commands/blobstore/BlobReadCommand.java
@@ -69,8 +69,8 @@ public class BlobReadCommand extends BlobStoreCommandWithOptions {
       InputSupplier<InputStream> supplier = getBlobInputStream(blobStore, containerName, blobName);
 
       if (display) {
-         CharStreams.copy(CharStreams.newReaderSupplier(supplier, Charsets.UTF_8), System.err);
-         System.err.flush();
+         CharStreams.copy(CharStreams.newReaderSupplier(supplier, Charsets.UTF_8), System.out);
+         System.out.flush();
       } else {
          if (fileName == null) {
             throw new CommandException("Must specify --exists, --display, or file name");