mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
16 lines
393 B
Bash
Executable File
16 lines
393 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 -Xmx4g -server -jar target/bitcoinj-tools-*.jar $*
|