Skip to content

Commit

Permalink
Append ".gz" to filenames of gzip compressed files.
Browse files Browse the repository at this point in the history
RELNOTES: None.
PiperOrigin-RevId: 282583739
  • Loading branch information
susinmotion authored and copybara-github committed Nov 26, 2019
1 parent 40c1123 commit 48957db
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,13 @@ public BuildToolLogCollection addLocalFile(String name, Path path) {
public BuildToolLogCollection addLocalFile(
String name, Path path, LocalFileType localFileType, LocalFileCompression compression) {
Preconditions.checkState(!frozen);
switch (compression) {
case GZIP:
name = name + ".gz";
break;
case NONE:
break;
}
this.localFiles.add(new LogFileEntry(name, path, localFileType, compression));
return this;
}
Expand Down

0 comments on commit 48957db

Please sign in to comment.