mirror of
https://github.com/corda/corda.git
synced 2025-01-14 08:49:47 +00:00
d2ef16cbfd
* CID-251 - Deterministic JVM * CID-251 - Add DJVM documentation * CID-251 - Address review comments from @chrisr3 * CID-251 - Address further review comments from @chrisr3 * CID-251 - Use shadowJar to generate fat JAR * CID-251 - Address review comments from @exFalso * CID-251 - Improve naming in ReferenceMap * CID-251 - Add test for Kotlin meta-class behaviour * CID-251 - Address review comments from @shamsasari * CID-251 - Add description of high-level flow * CID-251 - Refactoring * CID-251 - Rename package to net.corda.djvm * CID-251 - Include deterministic-rt.jar as runtime dependency * CID-251 - Add Gradle task for generating whitelist from deterministic rt.jar * CID-251 - Error messages for StackOverflow/OutOfMemory, update whitelist * CID-251 - Reduce set definition of pinned classes * CID-251 - Tidy up logic around pinned classes * CID-251 - Shade ASM dependency and split out CLI tool * CID-251 - Address review comments from @mikehearn (part 1) * CID-251 - Address review comments from @mikehearn (part 2) * CID-251 - Address review comments from @mikehearn (part 3) * CID-251 - Address review comments from @exFalso * CID-251 - Address review comments from @mikehearn (part 4) * CID-251 - Address review comments from @exFalso and @mikehearn * CID-251 - Address review comments from @mikehearn (part 5)
21 lines
737 B
Bash
Executable File
21 lines
737 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
file="${BASH_SOURCE[0]}"
|
|
linked_file="$(test -L "$file" && readlink "$file" || echo "$file")"
|
|
base_dir="$(cd "$(dirname "$linked_file")/../" && pwd)"
|
|
version="$(cat $base_dir/../build.gradle | sed -n 's/^[ ]*ext\.corda_release_version[ =]*"\([^"]*\)".*$/\1/p')"
|
|
jar_file="$base_dir/cli/build/libs/corda-djvm-$version-all.jar"
|
|
|
|
CLASSPATH="${CLASSPATH:-}"
|
|
|
|
DEBUG=`echo "${DEBUG:-0}" | sed 's/^[Nn][Oo]*$/0/g'`
|
|
DEBUG_PORT=5005
|
|
DEBUG_AGENT=""
|
|
|
|
if [ "$DEBUG" != 0 ]; then
|
|
echo "Opening remote debugging session on port $DEBUG_PORT"
|
|
DEBUG_AGENT="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=$DEBUG_PORT"
|
|
fi
|
|
|
|
java $DEBUG_AGENT -cp "$CLASSPATH:.:tmp:$jar_file" net.corda.djvm.tools.cli.Program "$@"
|