diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm b/src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm index e56487d7a0..41490424e9 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm +++ b/src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm @@ -109,7 +109,13 @@ in your genrule's cmd attribute. machine). Avoid this, and use a <code>java_binary</code> rule instead where possible. May be a relative path. If you must change directories before invoking <code>java</code>, you need to capture the - working directory before changing it. + working directory before changing it. This variable is only available if the + Java runtime, that is, + --> +<code>@bazel_tools//tools/jdk:current_java_runtime</code> +<!-- begin-block:shared> --> + or its host version (<code>current_host_java_runtime</code>) is in the + <code>toolchains</code> attribute. </li> <li> <code>STRIP</code>: The strip command from the same suite as the C/C++ @@ -152,6 +158,13 @@ in your genrule's cmd attribute. <p>The base directory containing the Java utilities. May be a relative path. It will have a "bin" subdirectory.</p> + + <p>This variable is only available if the Java runtime, that is, + --> +<code>@bazel_tools//tools/jdk:current_java_runtime</code> +<!-- begin-block:shared> --> + or its host version (<code>current_host_java_runtime</code>) is in the + <code>toolchains</code> attribute.</p> </li> </ul> |