-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add builder without mnemonics for build command
- Loading branch information
1 parent
d8a3fb9
commit c0591d0
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/main/java/org/jetbrains/bsp/bazel/server/bazel/BazelRunnerBuilderWithoutMnemonics.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.jetbrains.bsp.bazel.server.bazel; | ||
|
||
import java.util.List; | ||
// Mnemonics are not accepted by some commands, such as the build command, therefore they must be | ||
// treated as arguments. | ||
|
||
public class BazelRunnerBuilderWithoutMnemonics extends BazelRunnerBuilder { | ||
public BazelRunnerBuilderWithoutMnemonics(BazelRunner bazelRunner, String bazelBuildCommand) { | ||
super(bazelRunner, bazelBuildCommand); | ||
} | ||
|
||
@Override | ||
public BazelRunnerBuilder withTargets(List<String> bazelTargets) { | ||
return withArguments(bazelTargets); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters