diff options
author | Colin Cross <ccross@android.com> | 2021-03-12 17:52:23 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2021-03-18 16:17:32 -0700 |
commit | ab020a73331e444a62e64b24c2c9facc8572293a (patch) | |
tree | 5c430978410f0f745836a24d56def62441956d89 /java/java_test.go | |
parent | c5a0089ac4ded4a36b227c3c05fc3742a8253b3a (diff) |
Support sandboxing inputs in RuleBuilder
When RuleBuilder.SandboxInputs() is called configure sbox to copy
all the input files into the sandbox directory and then change the
working directory there when running the command.
Copying input files into the sandbox directory gets tricky when
the input file is the output file from another rule, and could
be at an arbitrary, possibly absolute path based on the value
of OUT_DIR. They will need to be copied to a directory in the
sandbox using the path relative to OUT_DIR.
RSP files need special handling, they need to both be copied into
the sandbox as an input, rewritten to contain paths as seen in the
sandbox, and references to them on the command line need to use
sandbox paths.
Bug: 182612695
Test: rule_builder_test.go
Change-Id: Ic0db961961b186e4ed9b76246881e3f04971825c
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions