forked from Fraunhofer-AISEC/trusted-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runLocal.sh
executable file
·31 lines (26 loc) · 1.15 KB
/
runLocal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -o errexit -o pipefail -o noclobber -o nounset
# Save working directory
OLD_PWD="$PWD"
# Return to saved working directory on error/exit
trap_handler() {
cd "$OLD_PWD" || exit 9
}
trap "trap_handler" ERR EXIT INT TERM
cd "$(dirname "${BASH_SOURCE[0]}")" || return
echo "This script starts a Trusted Connector locally."
echo "Productive instance are meant to run in containers, please use for TESTING ONLY!"
echo "It requires a successful build, by e.g. build.sh or fastBuild.sh."
echo "The working directory will be $(pwd). Deploy your Apache Camel routes to $(pwd)/deploy for testing."
if [ ! -d ./etc ]; then
echo "./etc not found, try to copy etc from $(pwd)/examples..." >&2
cp -r examples/etc .
fi
if [ ! -d ./deploy ]; then
echo "./deploy not found, try to copy deploy from $(pwd)/examples..." >&2
cp -r examples/deploy .
fi
echo ""
java --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.pkcs=ALL-UNNAMED \
--add-exports=java.base/sun.security.pkcs10=ALL-UNNAMED \
--class-path "ids-connector/build/libs/libraryJars/*:ids-connector/build/libs/projectJars/*" "de.fhg.aisec.ids.TrustedConnector"