mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
19 lines
390 B
Batchfile
19 lines
390 B
Batchfile
@echo off
|
|
rem Check if the jar has been built.
|
|
set TARGET_JAR=wallet-tool.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 ..
|
|
call mvn package -DskipTests
|
|
cd tools
|
|
|
|
: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 |