aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
diff options
context:
space:
mode:
authorGravatar Dmitry Lomov <dslomov@google.com>2015-08-19 16:57:49 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-08-20 14:49:12 +0000
commite2033b1d28d3f17c7e307f62b2b13c3eed72a7f6 (patch)
tree25d06fad6196071dd07756c5e1a661bd689198fc /src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
parent25f4494c484512898671aab57790f4917c0f9319 (diff)
A prototype implementation of top-level aspects.
-- MOS_MIGRATED_REVID=101033236
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java b/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
index f9277a9b3e..a506c442eb 100644
--- a/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
+++ b/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
@@ -81,7 +81,7 @@ public class BuildRequest implements OptionsClassProvider {
/**
* Options interface--can be used to parse command-line arguments.
*
- * See also ExecutionOptions; from the user's point of view, there's no
+ * <p>See also ExecutionOptions; from the user's point of view, there's no
* qualitative difference between these two sets of options.
*/
public static class BuildRequestOptions extends OptionsBase {
@@ -261,6 +261,15 @@ public class BuildRequest implements OptionsClassProvider {
help = "Check for modifications made to the output files of a build. Consider setting "
+ "this flag to false to see the effect on incremental build times.")
public boolean checkOutputFiles;
+
+ @Option(
+ name = "aspects",
+ converter = Converters.CommaSeparatedOptionListConverter.class,
+ defaultValue = "",
+ category = "undocumented", // for now
+ help = "List of top-level aspects"
+ )
+ public List<String> aspects;
}
/**
@@ -522,6 +531,10 @@ public class BuildRequest implements OptionsClassProvider {
return ImmutableSortedSet.copyOf(getBuildOptions().multiCpus);
}
+ public ImmutableList<String> getAspects() {
+ return ImmutableList.copyOf(getBuildOptions().aspects);
+ }
+
public static BuildRequest create(String commandName, OptionsProvider options,
OptionsProvider startupOptions,
List<String> targets, OutErr outErr, UUID commandId, long commandStartTime) {