mirror of
https://github.com/corda/corda.git
synced 2024-12-27 16:28:56 +00:00
f9e07c0158
* Replace SandboxedRunnable with Function interface. Remove DJVM from "Key Concepts" release notes. Update installation of shell tool. Fix broken sandbox package names. Make sure we only resolve each class once when loading. Also remove some unused default parameter values. Don't discard "bootstrap" sandbox.* classes because SourceClassLoader may need them. * Restore DJVM to the "Key Concepts" docs. * Remove all mention of "whitelisting" from the DJVM CLI.
18 lines
576 B
Bash
Executable File
18 lines
576 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
file="${BASH_SOURCE[0]}"
|
|
base_dir="$(cd "$(dirname "$file")/" && pwd)"
|
|
version="$(cat $base_dir/../../build.gradle | sed -n 's/^[ ]*ext\.corda_release_version[ =]*"\([^"]*\)".*$/\1/p')"
|
|
|
|
# Build DJVM module and CLI
|
|
cd "$base_dir/.."
|
|
../gradlew shadowJar
|
|
|
|
# Generate auto-completion file for Bash and ZSH
|
|
cd "$base_dir"
|
|
java -cp "$base_dir/../cli/build/libs/corda-djvm-$version-cli.jar" \
|
|
picocli.AutoComplete -n djvm net.corda.djvm.tools.cli.Commands -f
|
|
|
|
# Create a symbolic link to the `djvm` utility
|
|
sudo ln -sf "$base_dir/djvm" /usr/local/bin/djvm
|