Workplace Widget 5.10.23
This commit is contained in:
14
hmi-scripts/build-native-loader-smoke.sh
Executable file
14
hmi-scripts/build-native-loader-smoke.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build the vendor-independent Java 11 diagnostic with the production helper.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
CLASS="$ROOT/hmi-docs/cheerpj/NativeLoaderSmoke.java"
|
||||
HELPER="$ROOT/hmi-frontend/public/cheerpj/jaas-identity-bridge.jar"
|
||||
DEST="$ROOT/hmi-frontend/public/cheerpj/jaas-native-loader-smoke.jar"
|
||||
[[ -f "$HELPER" ]] || "$ROOT/hmi-scripts/build-jaas-bridge.sh"
|
||||
TEMP="$(mktemp -d)"
|
||||
trap 'rm -rf "$TEMP"' EXIT
|
||||
javac --release 11 -cp "$HELPER" -d "$TEMP" "$CLASS"
|
||||
jar --create --file "$DEST" -C "$TEMP" com/widgetworkbench/cheerpj/NativeLoaderSmoke.class
|
||||
jar tf "$DEST" | grep -q '^com/widgetworkbench/cheerpj/NativeLoaderSmoke.class$'
|
||||
echo "Created Java 11 diagnostic: $DEST"
|
||||
Reference in New Issue
Block a user