mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
215ecbfa21
Essentially it is just a port of wallet-tool bash script
16 lines
378 B
Bash
Executable File
16 lines
378 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Check if the jar has been built.
|
|
if [ ! -e target/bitcoinj-tools-*.jar ] || [[ "$ALWAYS_BUILD_WALLETTOOL" != "" ]]; then
|
|
echo "Compiling WalletTool to a JAR"
|
|
cd ../core
|
|
mvn install -DskipTests
|
|
cd ../tools
|
|
[ -e target/bitcoinj-tools-*.jar ] && rm target/bitcoinj-tools-*.jar
|
|
mvn package -DskipTests
|
|
fi
|
|
|
|
java -jar target/bitcoinj-tools-*.jar $*
|