15
15
16
16
import static com .google .devtools .build .lib .packages .Attribute .attr ;
17
17
import static com .google .devtools .build .lib .packages .BuildType .LABEL ;
18
- import static com .google .devtools .build .lib .packages .BuildType .LABEL_LIST ;
19
18
import static com .google .devtools .build .lib .packages .Type .BOOLEAN ;
20
19
21
20
import com .google .devtools .build .lib .analysis .RuleDefinition ;
22
21
import com .google .devtools .build .lib .analysis .RuleDefinitionEnvironment ;
23
22
import com .google .devtools .build .lib .analysis .config .ExecutionTransitionFactory ;
24
23
import com .google .devtools .build .lib .packages .RuleClass ;
25
24
import com .google .devtools .build .lib .rules .genrule .GenRuleBaseRule ;
26
- import com .google .devtools .build .lib .util .FileTypeSet ;
27
25
28
26
/**
29
27
* Rule definition for genrule for Bazel.
@@ -46,23 +44,6 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env)
46
44
.cfg (ExecutionTransitionFactory .createFactory ())
47
45
.value (env .getToolsLabel (GENRULE_SETUP_LABEL )))
48
46
49
- // TODO(https://github.com/bazelbuild/bazel/issues/19132): Remove this once downstream
50
- // projects are migrated.
51
- /* <!-- #BLAZE_RULE(genrule).ATTRIBUTE(exec_tools) -->
52
- <b>Deprecated. Use <a href="#genrule.tools"><code>tools</code></a> instead.</b>
53
-
54
- <p>
55
- There was a period of time when <code>exec_tools</code> and <code>tools</code> behaved
56
- differently, but they are now equivalent and the Blaze team will be migrating all uses of
57
- <code>exec_tools</code> to <code>tools</code>.
58
- </p>
59
- <!-- #END_BLAZE_RULE.ATTRIBUTE --> */
60
- .add (
61
- attr ("exec_tools" , LABEL_LIST )
62
- .cfg (ExecutionTransitionFactory .createFactory ())
63
- .allowedFileTypes (FileTypeSet .ANY_FILE )
64
- .dontCheckConstraints ())
65
-
66
47
// TODO(bazel-team): stamping doesn't seem to work. Fix it or remove attribute.
67
48
.add (attr ("stamp" , BOOLEAN ).value (false ))
68
49
.build ();
0 commit comments