Don't use Files.copy() when decrypting to stdout

Files.copy() attempts to delete the file if it already exists, which obviously
won't work very well for /dev/stdout.  Instead copy directly from the decoder
to standard output.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=228384575
This commit is contained in:
mmuller 2019-01-08 13:06:24 -08:00 committed by Ben McIlwain
parent 9e0b675275
commit 3078efdaac

View file

@ -92,6 +92,7 @@ java_library(
"@com_google_oauth_client_jetty", "@com_google_oauth_client_jetty",
"@com_google_re2j", "@com_google_re2j",
"@com_googlecode_json_simple", "@com_googlecode_json_simple",
"@commons_io",
"@io_bazel_rules_closure//closure/templates", "@io_bazel_rules_closure//closure/templates",
"@jline", "@jline",
"@joda_time", "@joda_time",