aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2015-03-16 14:01:24 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-03-16 17:34:58 +0000
commit738b3f8fb604ba966bd473efd2a2565e0a02cd0f (patch)
tree29583fd18b4bdb49a6687fe564c469f20d64da80 /src/main/java/com/google/devtools/build
parentfd440f9b9be3a167bbfe0573d45a51f207798c7f (diff)
Add missing "implicit output" section for Bazel's java_test.
Also some cosmetic changes in the BE template: remove strikethrough style when mouse hovers over text marked as describing something deprecated, to make it easier to read. -- MOS_MIGRATED_REVID=88723528
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/docgen/templates/be-footer.html5
-rw-r--r--src/main/java/com/google/devtools/build/docgen/templates/be-header.html147
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaTestRule.java17
3 files changed, 15 insertions, 154 deletions
diff --git a/src/main/java/com/google/devtools/build/docgen/templates/be-footer.html b/src/main/java/com/google/devtools/build/docgen/templates/be-footer.html
index f2dda2608b..e25c724198 100644
--- a/src/main/java/com/google/devtools/build/docgen/templates/be-footer.html
+++ b/src/main/java/com/google/devtools/build/docgen/templates/be-footer.html
@@ -6,13 +6,12 @@
<h3 id="package">package</h3>
-<p><code>package(
+<p><code>package(default_deprecation,
- default_deprecation,
default_obsolete,
default_testonly,
default_visibility,
- features</code>
+ features)</code>
</p>
<p>This function declares metadata that applies to every subsequent rule in the
diff --git a/src/main/java/com/google/devtools/build/docgen/templates/be-header.html b/src/main/java/com/google/devtools/build/docgen/templates/be-header.html
index 0aba2e7892..af60e68be5 100644
--- a/src/main/java/com/google/devtools/build/docgen/templates/be-header.html
+++ b/src/main/java/com/google/devtools/build/docgen/templates/be-header.html
@@ -2,152 +2,7 @@
<head>
<title>Bazel BUILD Encyclopedia of Functions</title>
- <style type="text/css" id="internalStyle">
- body {
- background-color: #ffffff;
- color: black;
- margin-right: 10%;
- margin-left: 10%;
- }
-
- h1, h2, h3, h4, h5, h6 {
- color: #dd7755;
- font-family: sans-serif;
- }
- @media print {
- /* Darker version for printing */
- h1, h2, h3, h4, h5, h6 {
- color: #008000;
- font-family: helvetica, sans-serif;
- }
- }
-
- h1 {
- text-align: center;
- }
- h2 {
- margin-left: -0.5in;
- }
- h3 {
- margin-left: -0.25in;
- }
- h4 {
- margin-left: -0.125in;
- }
- hr {
- margin-left: -1in;
- }
- address {
- text-align: right;
- }
-
- /* A compact unordered list */
- ul.tight > li {
- margin-bottom: 0;
- }
-
- /* Use the <code></code> tag for bits of code and <var></var> for variable and object names. */
- code,pre,samp,var {
- color: #006000;
- }
- /* Use the <file></file> tag for file and directory paths and names. */
- file {
- color: #905050;
- font-family: monospace;
- }
- /* Use the <kbd></kbd> tag for stuff the user should type. */
- kbd {
- color: #600000;
- }
- div.note p {
- float: right;
- width: 3in;
- margin-right: 0%;
- padding: 1px;
- border: 2px solid #60a060;
- background-color: #fffff0;
- }
-
- table.grid {
- background-color: #ffffee;
- border: 1px solid black;
- border-collapse: collapse;
- margin-left: 2mm;
- margin-right: 2mm;
- }
-
- table.grid th,
- table.grid td {
- border: 1px solid black;
- padding: 0 2mm 0 2mm;
- }
-
- /* Use pre.code for code listings.
- Use pre.interaction for "Here's what you see when you run a.out.".
- (Within pre.interaction, use <kbd></kbd> for things the user types)
- */
- pre.code {
- background-color: #FFFFEE;
- border: 1px solid black;
- color: #004000;
- font-size: 10pt;
- margin-left: 2mm;
- margin-right: 2mm;
- padding: 2mm;
- -moz-border-radius: 12px 0px 0px 0px;
- }
-
- pre.interaction {
- background-color: #EEFFEE;
- color: #004000;
- padding: 2mm;
- }
-
- pre.interaction kbd {
- font-weight: bold;
- color: #000000;
- }
-
- /* legacy style */
- pre.interaction b.astyped {
- color: #000000;
- }
-
- h1 { margin-bottom: 5px; }
- .toc { margin: 0px; }
- ul li { margin-bottom: 1em; }
- ul.toc li { margin-bottom: 0px; }
- em.harmful { color: red; }
-
- .deprecated { text-decoration: line-through; }
- .discouraged { text-decoration: line-through; }
-
- #rules { width: 980px; border-collapse: collapse; }
- #rules td { border-top: 1px solid gray; padding: 4px; vertical-align: top; }
- #rules th { text-align: left; padding: 4px; }
-
- table.layout { width: 980px; }
- table.layout td { vertical-align: top; }
-
- #maintainer { text-align: right; }
-
- dt {
- font-weight: bold;
- margin-top: 0.5em;
- margin-bottom: 0.5em;
- }
- dd dt {
- font-weight: normal;
- text-decoration: underline;
- color: gray;
- }
- </style>
- <style type="text/css">
- .rule-signature {
- color: #006000;
- font-family: monospace;
- }
- </style>
+ <link href="docs_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaTestRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaTestRule.java
index 1df6cac0bf..24eb6a8d44 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaTestRule.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaTestRule.java
@@ -34,16 +34,23 @@ import com.google.devtools.build.lib.rules.java.JavaSemantics;
* Rule definition for the java_test rule.
*/
@BlazeRule(name = "java_test",
- type = RuleClassType.TEST,
- ancestors = { BaseJavaBinaryRule.class,
- BaseRuleClasses.TestBaseRule.class },
- factoryClass = BazelJavaTest.class)
+ type = RuleClassType.TEST,
+ ancestors = { BaseJavaBinaryRule.class,
+ BaseRuleClasses.TestBaseRule.class },
+ factoryClass = BazelJavaTest.class)
public final class BazelJavaTestRule implements RuleDefinition {
-
+
private static final String JUNIT4_RUNNER = "org.junit.runner.JUnitCore";
@Override
public RuleClass build(Builder builder, RuleDefinitionEnvironment env) {
+ /* <!-- #BLAZE_RULE(java_test).IMPLICIT_OUTPUTS -->
+ <ul>
+ <li><code><var>name</var>.jar</code>: A Java archive.</li>
+ <li><code><var>name</var>_deploy.jar</code>: A Java archive suitable for deployment. (Only
+ built if explicitly requested.)</li>
+ </ul>
+ <!-- #END_BLAZE_RULE.IMPLICIT_OUTPUTS --> */
return builder
.setImplicitOutputsFunction(BazelJavaRuleClasses.JAVA_BINARY_IMPLICIT_OUTPUTS)
.override(attr("main_class", STRING).value(JUNIT4_RUNNER))