Skip to content

Commit

Permalink
Update README example
Browse files Browse the repository at this point in the history
This didn't get changed when I shuffled the java examples around.

--
MOS_MIGRATED_REVID=87709667
  • Loading branch information
kchodorow authored and hanwen committed Mar 5, 2015
1 parent 07d744b commit 4f7e142
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f7e142

Please sign in to comment.