docs(java): clarify source list format (#13431)

This commit is contained in:
Yury Semikhatsky 2022-04-08 10:44:48 -07:00 committed by GitHub
parent e72975d9c6
commit 10b8a8b199
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
```