Fix example polygerrit-ui command-line

java should be invoked from $(bazel info output) root. There is no
guarantee that $(which java) is compatible with the JDK that bazel
uses.

Change-Id: I339e4011fd2c84d2e8dd3d4e66730159ca625bbb
This commit is contained in:
Han-Wen Nienhuys
2017-04-25 12:37:51 +02:00
parent 158d7fe712
commit 2af13fa21d

View File

@@ -68,9 +68,10 @@ When your project is set up and works using the classic UI, run a test server
that serves PolyGerrit:
```sh
bazel build polygerrit && \
java -jar bazel-bin/polygerrit.war daemon --polygerrit-dev \
-d ../gerrit_testsite --console-log --show-stack-trace
bazel build polygerrit &&
$(bazel info output_base)/external/local_jdk/bin/java \
-jar bazel-bin/polygerrit.war daemon --polygerrit-dev \
-d ../gerrit_testsite --console-log --show-stack-trace
```
## Running Tests