From 4f7e142255c075d1a316c66adf092e7ff30b00b6 Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Wed, 4 Mar 2015 15:47:03 +0000 Subject: Update README example This didn't get changed when I shuffled the java examples around. -- MOS_MIGRATED_REVID=87709667 --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2bdb47fcb0..8554b84417 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3