diff options
author | Kristina Chodorow <kchodorow@google.com> | 2015-03-04 15:47:03 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-03-05 18:24:05 +0000 |
commit | 4f7e142255c075d1a316c66adf092e7ff30b00b6 (patch) | |
tree | df6efb08345530f0f3cb4641c472db83b171407f /README.md | |
parent | 07d744b2a6309de0ea921eabc716c303c0d4075b (diff) |
Update README example
This didn't get changed when I shuffled the java examples around.
--
MOS_MIGRATED_REVID=87709667
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -84,13 +84,14 @@ Build a sample Java application: $ cp -R $HOME/bazel/base_workspace $HOME/my_workspace $ cd $HOME/my_workspace - $ $HOME/bazel/output/bazel build //examples/java:hello-world + $ $HOME/bazel/output/bazel build //examples/java-native/src/main/java/com/example/myproject:hello-world -_Note: on OS X, you must specify \-\-cpu=darwin to build Java programs (e.g., -bazel build --cpu=darwin //examples/java:hello-world)._ +_Note: on OS X, you must specify \-\-cpu=darwin to build Java programs, for example:_ -The build output is located in `$HOME/my_workspace/bazel-bin/examples/java/`. + $ bazel build --cpu=darwin //examples/java-native/src/main/java/com/example/myproject:hello-world + +The build output is located in `$HOME/my_workspace/bazel-bin/examples/java-native/src/main/java/com/example/myproject/`. Run the sample application: - $ $HOME/my_workspace/bazel-bin/examples/java/hello-world + $ $HOME/my_workspace/bazel-bin/examples/java-native/src/main/java/com/example/myproject/hello-world |