mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 23:32:16 +00:00
21 lines
489 B
Batchfile
21 lines
489 B
Batchfile
|
@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
|