aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar lberki <lberki@google.com>2017-12-21 10:56:16 +0100
committerGravatar Philipp Wollermann <philwo@google.com>2017-12-21 14:38:30 +0100
commitd8c8a9cb4890cd51dae946213cdec1dc139af8d8 (patch)
treef083f8ad2e9ce888c8fdda4ebcf5140b495ab6f8 /src/main/java
parentd4e3ce6531c60b08085d2d2fcb76b2b141b6e77d (diff)
Mention that the $(JAVA) and $(JAVABASE) variables are only available if the Java runtime is listed as a toolchain.
RELNOTES: None. PiperOrigin-RevId: 179787891
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm15
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>