2020-12-14 15:46:05 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set +x
|
|
|
|
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
|
|
cd "$(dirname $0)/.."
|
|
|
|
|
2020-12-15 16:08:39 -08:00
|
|
|
PLAYWRIGHT_CLI=./driver-bundle/src/main/resources/driver/linux/playwright-cli
|
|
|
|
echo "Updating api.json from $($PLAYWRIGHT_CLI --version)"
|
|
|
|
|
2020-12-18 18:42:11 -08:00
|
|
|
$PLAYWRIGHT_CLI print-api-json > ./tools/api-generator/src/main/resources/api.json
|
2020-12-14 15:46:05 -08:00
|
|
|
|
2020-12-18 18:42:11 -08:00
|
|
|
mvn compile -f ./tools/api-generator --no-transfer-progress
|
2020-12-14 15:46:05 -08:00
|
|
|
|
|
|
|
echo "Regenerating Java interfaces"
|
2020-12-18 18:42:11 -08:00
|
|
|
mvn exec:java --f ./tools/api-generator -Dexec.mainClass=com.microsoft.playwright.tools.ApiGenerator
|