mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
Wallet tool launcher for Windows
Essentially it is just a port of wallet-tool bash script
This commit is contained in:
parent
09286a932c
commit
215ecbfa21
@ -12,4 +12,4 @@ if [ ! -e target/bitcoinj-tools-*.jar ] || [[ "$ALWAYS_BUILD_WALLETTOOL" != "" ]
|
||||
mvn package -DskipTests
|
||||
fi
|
||||
|
||||
java -server -jar target/bitcoinj-tools-*.jar $*
|
||||
java -jar target/bitcoinj-tools-*.jar $*
|
||||
|
21
tools/wallet-tool.cmd
Normal file
21
tools/wallet-tool.cmd
Normal file
@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
rem Check if the jar has been built.
|
||||
set TARGET_JAR=bitcoinj-tools-*.jar
|
||||
|
||||
if not exist "target/%TARGET_JAR%" goto BUILD
|
||||
if defined ALWAYS_BUILD_WALLETTOOL goto BUILD
|
||||
goto RUN
|
||||
|
||||
:BUILD
|
||||
|
||||
echo Compiling WalletTool to a JAR
|
||||
cd ../core
|
||||
call mvn install -DskipTests
|
||||
cd ../tools
|
||||
if exist "target/%TARGET_JAR%" del "target\%TARGET_JAR%"
|
||||
call mvn package -DskipTests
|
||||
|
||||
:RUN
|
||||
|
||||
for /R "target/" %%F in (%TARGET_JAR%) do set JAR_NAME=%%~nxF
|
||||
java -jar "target/%JAR_NAME%" %1 %2 %3 %4 %5 %6 %7 %8
|
Loading…
Reference in New Issue
Block a user