the build file and bash example out of synch
comparing to the latest code in the java tutorial repo
Closes
@@ -88,8 +88,9 @@ Take a look at the `java-tutorial/BUILD` file:
```
java_binary(
- name = "ProjectRunner",
+ name = "my-runner",
srcs = glob(["src/main/java/com/example/*.java"]),
+ main_class = "com.example.ProjectRunner",
)
```
@@ -111,7 +112,7 @@ Let's build your sample project. Change into the `java-tutorial` directory
and run the following command:
```
-bazel build //:ProjectRunner
+bazel build //:my-runner
```
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,10 +123,10 @@ Bazel produces output similar to the following:
```bash
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
+Target //:my-runner up-to-date:
+ bazel-bin/my-runner.jar
+ bazel-bin/my-runner
+INFO: Elapsed time: 10.179s, Critical Path: 0.84s
```
Congratulations, you just built your first Bazel target! Bazel places build
