mirror of
https://github.com/microsoft/playwright-java.git
synced 2025-09-08 21:01:00 +00:00
18 lines
496 B
Bash
Executable File
18 lines
496 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set +x
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
cd "$(dirname $0)/.."
|
|
|
|
PLAYWRIGHT_CLI=./driver-bundle/src/main/resources/driver/linux/playwright-cli
|
|
echo "Updating api.json from $($PLAYWRIGHT_CLI --version)"
|
|
|
|
$PLAYWRIGHT_CLI print-api-json > ./tools/api-generator/src/main/resources/api.json
|
|
|
|
mvn compile -f ./tools/api-generator --no-transfer-progress
|
|
|
|
echo "Regenerating Java interfaces"
|
|
mvn exec:java --f ./tools/api-generator -Dexec.mainClass=com.microsoft.playwright.tools.ApiGenerator
|