diff options
author | 2017-12-18 14:33:45 -0800 | |
---|---|---|
committer | 2017-12-18 14:36:01 -0800 | |
commit | 8a2baea4513f0989be8dc5ea89ca9ddb5b2555eb (patch) | |
tree | 0d9ec5f4de99e7744d1ea98d7b28a287c1969210 /src/main/java/com/google/devtools/build/lib/runtime/commands/BuildCommand.java | |
parent | cdbaef24f47f859d8fd431a7844b08ed4e9d8461 (diff) |
Consolidate instances of the --keep_going flag.
RELNOTES: None.
PiperOrigin-RevId: 179468685
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/commands/BuildCommand.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/commands/BuildCommand.java | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/BuildCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/BuildCommand.java index d0aa57bb81..d5315eaf38 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/BuildCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/BuildCommand.java @@ -25,29 +25,34 @@ import com.google.devtools.build.lib.runtime.BlazeCommand; import com.google.devtools.build.lib.runtime.BlazeRuntime; import com.google.devtools.build.lib.runtime.Command; import com.google.devtools.build.lib.runtime.CommandEnvironment; +import com.google.devtools.build.lib.runtime.KeepGoingOption; import com.google.devtools.build.lib.util.ExitCode; import com.google.devtools.common.options.OptionsParser; import com.google.devtools.common.options.OptionsProvider; import java.util.List; /** - * Handles the 'build' command on the Blaze command line, including targets - * named by arguments passed to Blaze. + * Handles the 'build' command on the Blaze command line, including targets named by arguments + * passed to Blaze. */ -@Command(name = "build", - builds = true, - options = { BuildRequestOptions.class, - ExecutionOptions.class, - LocalExecutionOptions.class, - PackageCacheOptions.class, - BuildView.Options.class, - LoadingOptions.class, - }, - usesConfigurationOptions = true, - shortDescription = "Builds the specified targets.", - allowResidue = true, - completion = "label", - help = "resource:build.txt") +@Command( + name = "build", + builds = true, + options = { + BuildRequestOptions.class, + ExecutionOptions.class, + LocalExecutionOptions.class, + PackageCacheOptions.class, + BuildView.Options.class, + LoadingOptions.class, + KeepGoingOption.class + }, + usesConfigurationOptions = true, + shortDescription = "Builds the specified targets.", + allowResidue = true, + completion = "label", + help = "resource:build.txt" +) public final class BuildCommand implements BlazeCommand { @Override |