ta-lang="plz">
    genrule(
        name = "java_lib",
        cmd = "$TOOLS_JAVAC ...",
        tools = {
          "javac": ":jdk|javac",
        },
    )
    </code>
  </pre>
</section>

<section class="mt4">
  <h2 id="tests" class="title-2">Tests</h2>

  <p>
    As well as <code class="code">genrule()</code>, there's also
    <a class="copy-link" href="/lexicon.html#gentest">gentest()</a>
    which defines tests. Test rules are very similar to other build rules in
    that they have a build step. This b