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