From e4c1e760433628efc50dc4a617a4b4533ffac263 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Mon, 30 May 2022 20:08:37 +0200 Subject: [PATCH 1/3] check error level after starting commandbox --- build.bat | 9 ++++++++- build.sh | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/build.bat b/build.bat index f14b4b269..2481d9e2f 100644 --- a/build.bat +++ b/build.bat @@ -8,9 +8,16 @@ cfengine="lucee@5" ^ port=8765 ^ openbrowser=false ^ directory=%CWD% ^ -javaVersion=openjdk8_jre_jdk8u332-b09 ^ +javaVersion=openjdk88_jre_jdk8u132-b09 ^ heapSize=2048 +@echo off +IF ERRORLEVEL EQ 0 GOTO start +echo Exiting build, commandbox build failed with exitcode %exitcode% +exit /b %exitcode% +echo on +:start + echo Done! echo Importing reference docs from previously undocumented functions and tags... curl http://localhost:8765/import.cfm?textlogs=true diff --git a/build.sh b/build.sh index 0235e491b..b07152ece 100755 --- a/build.sh +++ b/build.sh @@ -11,9 +11,16 @@ cfengine="lucee@5" \ port=8765 \ openbrowser=false \ directory=$CWD \ -javaVersion=openjdk8_jre_jdk8u332-b09 \ +javaVersion=openjdk8_jre_jdk8u132-b09 \ heapSize=2048; +if [ -f .exitcode ]; then + exitcode=$(<.exitcode) + rm -f .exitcode + echo "Exiting build, Lucee / Commandbox failed to start. Exit code: $exitcode" + exit $exitcode +fi + echo "Local Lucee Server Started!"; echo "Importing reference docs from previously undocumented functions and tags..." curl --no-progress-meter http://localhost:8765/import.cfm?textlogs=true From 0e2d172e2f1e86cf005cbe93b17cbff9ef5ef6eb Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Fri, 10 Jun 2022 13:09:42 +0200 Subject: [PATCH 2/3] Update build.bat Co-authored-by: John Bampton --- build.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.bat b/build.bat index 2481d9e2f..d5ccd3aa9 100644 --- a/build.bat +++ b/build.bat @@ -13,7 +13,7 @@ heapSize=2048 @echo off IF ERRORLEVEL EQ 0 GOTO start -echo Exiting build, commandbox build failed with exitcode %exitcode% +echo Exiting build, CommandBox build failed with exitcode %exitcode% exit /b %exitcode% echo on :start From 9b83fb7be47aa6a2840461078e23ce2689850630 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Fri, 10 Jun 2022 13:09:48 +0200 Subject: [PATCH 3/3] Update build.sh Co-authored-by: John Bampton --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b07152ece..135a6ba50 100755 --- a/build.sh +++ b/build.sh @@ -17,7 +17,7 @@ heapSize=2048; if [ -f .exitcode ]; then exitcode=$(<.exitcode) rm -f .exitcode - echo "Exiting build, Lucee / Commandbox failed to start. Exit code: $exitcode" + echo "Exiting build, Lucee / CommandBox failed to start. Exit code: $exitcode" exit $exitcode fi