commit | 37aad60742a8d95cc7bc7c561a390a340e8add8a | [log] [tgz] |
---|---|---|
author | Tobias Werth <twerth@google.com> | Wed Feb 24 15:20:46 2016 +0000 |
committer | Philipp Wollermann <philwo@google.com> | Wed Feb 24 18:03:09 2016 +0000 |
tree | 840db39930088a2ab5e142cdcb6acffc72b0bee4 | |
parent | 278e2bea425ab0b10718b3100bde1da7032a9d12 [diff] |
Description redacted. -- MOS_MIGRATED_REVID=115448892
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java index 8d88c6f..4260597 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java
@@ -640,6 +640,13 @@ return this; } + /** + * Checks whether the action produces any outputs + */ + public boolean hasOutputs() { + return !outputs.isEmpty(); + } + public Builder setResources(ResourceSet resourceSet) { this.resourceSet = resourceSet; return this;