2014-06-24 10:26:03 +00:00
|
|
|
@echo off
|
|
|
|
rem Check if the jar has been built.
|
2014-08-05 13:42:29 +00:00
|
|
|
set TARGET_JAR=wallet-tool.jar
|
2014-06-24 10:26:03 +00:00
|
|
|
|
|
|
|
if not exist "target/%TARGET_JAR%" goto BUILD
|
|
|
|
if defined ALWAYS_BUILD_WALLETTOOL goto BUILD
|
|
|
|
goto RUN
|
|
|
|
|
|
|
|
:BUILD
|
|
|
|
|
|
|
|
echo Compiling WalletTool to a JAR
|
2014-08-05 13:42:29 +00:00
|
|
|
cd ..
|
2014-06-24 10:26:03 +00:00
|
|
|
call mvn package -DskipTests
|
2014-08-05 13:42:29 +00:00
|
|
|
cd tools
|
2014-06-24 10:26:03 +00:00
|
|
|
|
|
|
|
: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
|