Skip to content

Commit

Permalink
sandbox: We have to move all generated outputs, not just regular files.
Browse files Browse the repository at this point in the history
Fix for a part of bug #397.

--
MOS_MIGRATED_REVID=102343972
  • Loading branch information
philwo authored and damienmg committed Sep 4, 2015
1 parent e8f8dc5 commit 3696355
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ private void copyOutputs(Collection<? extends ActionInput> outputs) throws IOExc
Path source = sandboxExecRoot.getRelative(output.getExecPathString());
Path target = execRoot.getRelative(output.getExecPathString());
FileSystemUtils.createDirectoryAndParents(target.getParentDirectory());
if (source.isFile()) {
Files.move(new File(source.getPathString()), new File(target.getPathString()));
}
Files.move(source.getPathFile(), target.getPathFile());
}
}

Expand Down

0 comments on commit 3696355

Please sign in to comment.