aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm
diff options
context:
space:
mode:
authorGravatar lberki <lberki@google.com>2017-12-21 13:26:18 +0100
committerGravatar Philipp Wollermann <philwo@google.com>2017-12-21 14:38:38 +0100
commitbfb8e8f3ed1779d6e5960824b7c651df8a634bbd (patch)
tree479503cc0bfb1b7e80413b88571b3554a056afc8 /src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm
parent63881399ad492ed610798f4868143deba62b925d (diff)
Automated rollback of commit bd4c8dd0bca8452b18cb8d0eed6e1d91b9ee4434.
*** Reason for rollback *** Fixed the single-character typo. *** Original change description *** Automated rollback of commit 48ff6e00e2cf72fa920d01ec78755882ab1ee313. *** Reason for rollback *** Breaks Copybara due to leak check failure. *** Original change description *** Mention that the $(JAVA) and $(JAVABASE) variables are only available if the Java runtime is listed as a toolchain. RELNOTES: None. PiperOrigin-RevId: 179799039
Diffstat (limited to 'src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm')
-rw-r--r--src/main/java/com/google/devtools/build/docgen/templates/be/make-variables.vm13
1 files changed, 12 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..d1ae290063 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,12 @@ 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>
+ 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 +157,12 @@ 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>
+ or its host version (<code>current_host_java_runtime</code>) is in the
+ <code>toolchains</code> attribute.</p>
</li>
</ul>