mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
Update DemoBench packager scripts to fail when packaging fails. (#1023)
This commit is contained in:
parent
05327f3826
commit
729eaed362
@ -7,7 +7,12 @@ if [ -z "$JAVA_HOME" -o ! -x $JAVA_HOME/bin/java ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$DIRNAME/../../gradlew -PpackageType=dmg javapackage $*
|
if ($DIRNAME/../../gradlew -PpackageType=dmg javapackage $*); then
|
||||||
echo
|
echo
|
||||||
echo "Wrote installer to '$(find build/javapackage/bundles -type f)'"
|
echo "Wrote installer to '$(find build/javapackage/bundles -type f)'"
|
||||||
echo
|
echo
|
||||||
|
else
|
||||||
|
echo "Failed to create installer."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -9,12 +9,18 @@ set DIRNAME=%~dp0
|
|||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
|
|
||||||
call %DIRNAME%\..\..\gradlew -PpackageType=exe javapackage
|
call %DIRNAME%\..\..\gradlew -PpackageType=exe javapackage
|
||||||
|
if "%ERRORLEVEL%" neq "0" goto Fail
|
||||||
@echo
|
@echo
|
||||||
@echo "Wrote installer to %DIRNAME%\build\javapackage\bundles\"
|
@echo Wrote installer to %DIRNAME%\build\javapackage\bundles\
|
||||||
@echo
|
@echo
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:NoJavaHome
|
:NoJavaHome
|
||||||
@echo "Please set JAVA_HOME correctly"
|
@echo Please set JAVA_HOME correctly.
|
||||||
|
exit /b 1
|
||||||
|
|
||||||
|
:Fail
|
||||||
|
@echo Failed to write installer.
|
||||||
|
exit /b 1
|
||||||
|
|
||||||
:end
|
:end
|
||||||
|
@ -7,7 +7,11 @@ if [ -z "$JAVA_HOME" -o ! -x $JAVA_HOME/bin/java ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$DIRNAME/../../gradlew -PpackageType=rpm javapackage $*
|
if ($DIRNAME/../../gradlew -PpackageType=rpm javapackage $*); then
|
||||||
echo
|
echo
|
||||||
echo "Wrote installer to '$(find $DIRNAME/build/javapackage/bundles -type f)'"
|
echo "Wrote installer to '$(find $DIRNAME/build/javapackage/bundles -type f)'"
|
||||||
echo
|
echo
|
||||||
|
else
|
||||||
|
echo "Failed to create installer."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user