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)"
|
|
|
|
|
|
|
|
$PLAYWRIGHT_CLI print-api-json > ./api-generator/src/main/resources/api.json
|
2020-12-14 15:46:05 -08:00
|
|
|
|
2020-12-15 14:06:32 -08:00
|
|
|
mvn compile -projects api-generator --no-transfer-progress
|
2020-12-14 15:46:05 -08:00
|
|
|
|
|
|
|
echo "Regenerating Java interfaces"
|
|
|
|
mvn exec:java --projects api-generator -Dexec.mainClass=com.microsoft.playwright.tools.ApiGenerator
|