#!/bin/bash

DIR="${0%/*}"
EXTRA_ARGS=("-Dio.xpipe.app.writeSysOut=true" "-Dio.xpipe.app.writeLogs=false" "-Dio.xpipe.app.logLevel=trace" "-Dio.xpipe.app.developerMode=true" "-Dio.xpipe.beacon.debugOutput=true" "-Dio.xpipe.app.useVirtualThreads=false")
export CDS_JVM_OPTS="${EXTRA_ARGS[*]}"

"$DIR/../lib/runtime/bin/xpiped" "$@"

read -rsp "Press any key to close" -n 1 key
