diff options
author | Googler <noreply@google.com> | 2017-07-20 19:48:05 +0200 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2017-07-21 09:14:47 +0200 |
commit | 006659e1777df64ebcc5a551bc7ad5c3d1042e68 (patch) | |
tree | 4b421f690a9f2fb44cc813e7bc44efa131cd69d5 /site/docs/tutorial/java.md | |
parent | 2e56f0664d91fce3974938198d8a30e1aeef8d62 (diff) |
Automated rollback of commit 08e34e37663ec0fa2e957e44c7e1e0a2afc205ea.
*** Reason for rollback ***
Rolling this back as it was the example BUILD file that was incorrect, not the tutorial itself. Submitted an updated BUILD file in commit 6abf4b9.
*** Original change description ***
the build file and bash example out of synch
comparing to the latest code in the java tutorial repo
Closes #3419.
PiperOrigin-RevId: 162635241
Diffstat (limited to 'site/docs/tutorial/java.md')
-rw-r--r-- | site/docs/tutorial/java.md | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/site/docs/tutorial/java.md b/site/docs/tutorial/java.md index 3a3131111f..6059ba1123 100644 --- a/site/docs/tutorial/java.md +++ b/site/docs/tutorial/java.md @@ -88,9 +88,8 @@ Take a look at the `java-tutorial/BUILD` file: ``` java_binary( - name = "my-runner", + name = "ProjectRunner", srcs = glob(["src/main/java/com/example/*.java"]), - main_class = "com.example.ProjectRunner", ) ``` @@ -112,7 +111,7 @@ Let's build your sample project. Change into the `java-tutorial` directory and run the following command: ``` -bazel build //:my-runner +bazel build //:ProjectRunner ``` Notice the target label - the `//` part is the location of our `BUILD` file relative to the root of the workspace (in this case, the root itself), and @@ -122,11 +121,11 @@ learn about target labels in more detail at the end of this tutorial.) Bazel produces output similar to the following: ```bash -INFO: Found 1 target... -Target //:my-runner up-to-date: - bazel-bin/my-runner.jar - bazel-bin/my-runner -INFO: Elapsed time: 10.179s, Critical Path: 0.84s + INFO: Found 1 target... + Target //:ProjectRunner up-to-date: + bazel-bin/ProjectRunner.jar + bazel-bin/ProjectRunner + INFO: Elapsed time: 1.021s, Critical Path: 0.83s ``` Congratulations, you just built your first Bazel target! Bazel places build |