Skip to content

Commit

Permalink
Allow java_runtime rules to have no srcs.
Browse files Browse the repository at this point in the history
Fixes bazelbuild#3408.

RELNOTES: None.
PiperOrigin-RevId: 162464669
  • Loading branch information
lberki authored and aehlig committed Jul 19, 2017
1 parent 404ebc7 commit 9d61bad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public RuleClass build(Builder builder, RuleDefinitionEnvironment env) {
/* <!-- #BLAZE_RULE(java_runtime).ATTRIBUTE(srcs) -->
All files in the runtime.
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
.add(attr("srcs", LABEL_LIST).allowedFileTypes(FileTypeSet.ANY_FILE).mandatory())
.add(attr("srcs", LABEL_LIST).allowedFileTypes(FileTypeSet.ANY_FILE))
/* <!-- #BLAZE_RULE(java_runtime).ATTRIBUTE(java_home) -->
The path to the root of the runtime.
Subject to <a href="${link make-variables}">"Make" variable</a> substitution.
Expand Down

0 comments on commit 9d61bad

Please sign in to comment.