Updated Branches: refs/heads/1.6.x ee81c1e59 -> ddb59ab9e
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/ddb59ab9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-jclouds-karaf/tree/ddb59ab9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-jclouds-karaf/diff/ddb59ab9 Branch: refs/heads/1.6.x Commit: ddb59ab9e89e675a8144d31ac7e67748d5592844 Parents: ee81c1e Author: Timur Alperovich <[email protected]> Authored: Thu May 23 14:39:58 2013 -0700 Committer: Andrew Gaul <[email protected]> Committed: Fri May 24 09:27:05 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/ddb59ab9/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");
