cherry-pick(#13431): docs(java): clarify source list format (#13434)

This commit is contained in:
Yury Semikhatsky 2022-04-08 11:51:20 -07:00 committed by GitHub
parent ee0119f503
commit bb810f5a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -140,7 +140,8 @@ Whether to include source files for trace actions.
- `sources` <[boolean]>
Whether to include source files for trace actions. List of the directories with source code for the application
must be provided via `PLAYWRIGHT_JAVA_SRC` environment variable.
must be provided via `PLAYWRIGHT_JAVA_SRC` environment variable (the paths should be separated by ';' on Windows
and by ':' on other platforms).
### option: Tracing.start.title
- `title` <[string]>

View file

@ -31,17 +31,20 @@ configures Playwright for debugging and opens the inspector.
```
```bash bash-flavor=bash lang=java
PWDEBUG=1 PLAYWRIGHT_JAVA_SRC=<java src root> mvn test
# Source directories in the list are separated by : on macos and linux and by ; on win.
PWDEBUG=1 PLAYWRIGHT_JAVA_SRC=<java source dirs> mvn test
```
```bash bash-flavor=batch lang=java
set PLAYWRIGHT_JAVA_SRC=<java src root>
# Source directories in the list are separated by : on macos and linux and by ; on win.
set PLAYWRIGHT_JAVA_SRC=<java source dirs>
set PWDEBUG=1
mvn test
```
```bash bash-flavor=powershell lang=java
$env:PLAYWRIGHT_JAVA_SRC="<java src root>"
# Source directories in the list are separated by : on macos and linux and by ; on win.
$env:PLAYWRIGHT_JAVA_SRC="<java source dirs>"
$env:PWDEBUG=1
mvn test
```