You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jk...@apache.org on 2025/08/07 18:56:33 UTC
(xalan-test) branch XALANJ-2725 created (now 954183ff)
This is an automated email from the ASF dual-hosted git repository.
jkesselm pushed a change to branch XALANJ-2725
in repository https://gitbox.apache.org/repos/asf/xalan-test.git
at 954183ff Clean up the builds to return error codes/result codes, for use when build is invoked programmatically rather than from command line. Should be much cleaner than trying to parse the console output.
This branch includes the following new commits:
new 5db4c080 Changing build.sh to return the Result Code ($?) from the Ant invocation rather than throwing it away. Permits checking for success without parsing the console log, when invoking tests from another script. Should have done this long ago; oversight.
new 954183ff Clean up the builds to return error codes/result codes, for use when build is invoked programmatically rather than from command line. Should be much cleaner than trying to parse the console output.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org
(xalan-test) 01/02: Changing build.sh to return the Result Code ($?) from the Ant invocation rather than throwing it away. Permits checking for success without parsing the console log, when invoking tests from another script. Should have done this long ago; oversight.
Posted by jk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jkesselm pushed a commit to branch XALANJ-2725
in repository https://gitbox.apache.org/repos/asf/xalan-test.git
commit 5db4c080b2c357bd7be85bfd16661ad931c31bd8
Author: kubycsolutions <ke...@kubyc.solutions>
AuthorDate: Tue Aug 5 18:23:20 2025 -0400
Changing build.sh to return the Result Code ($?) from the Ant
invocation rather than throwing it away. Permits checking for success
without parsing the console log, when invoking tests from another
script. Should have done this long ago; oversight.
---
build.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/build.sh b/build.sh
index 8f6c3a40..a392f057 100755
--- a/build.sh
+++ b/build.sh
@@ -92,4 +92,8 @@ XERCES_ENDORSED_DIR_PATH=../xalan-java/lib/endorsed:../lib/endorsed
echo Running: "$JAVACMD" -mx1024m -Djava.endorsed.dirs="$XALAN_BUILD_DIR_PATH:$XERCES_ENDORSED_DIR_PATH" -classpath "$CLASSPATH" org.apache.tools.ant.Main "$@"
"$JAVACMD" -mx1024m -Djava.endorsed.dirs="$XALAN_BUILD_DIR_PATH:$XERCES_ENDORSED_DIR_PATH" -classpath "$CLASSPATH" org.apache.tools.ant.Main "$@"
+ant_rc=$?
+echo ANT RETURN CODE: $ant_rc
+
echo "build.sh complete!"
+exit $ant_rc
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org
(xalan-test) 02/02: Clean up the builds to return error codes/result codes, for use when build is invoked programmatically rather than from command line. Should be much cleaner than trying to parse the console output.
Posted by jk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jkesselm pushed a commit to branch XALANJ-2725
in repository https://gitbox.apache.org/repos/asf/xalan-test.git
commit 954183ff49d7258d987fec765a4c0e7bb8588838
Author: kubycsolutions <ke...@kubyc.solutions>
AuthorDate: Tue Aug 5 19:55:00 2025 -0400
Clean up the builds to return error codes/result codes, for use when
build is invoked programmatically rather than from command line. Should
be much cleaner than trying to parse the console output.
---
build.bat | 10 ++++++----
build.sh | 4 +---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/build.bat b/build.bat
index 30f82940..a2db77c5 100644
--- a/build.bat
+++ b/build.bat
@@ -28,6 +28,9 @@ rem 1) You must set JAVA_HOME
rem
rem 2) You can set ANT_HOME if you use your own Ant install
+rem Upon exit, revert any environment variable changes
+setlocal
+
echo.
echo Xalan-J test automation build
echo -----------------------------
@@ -64,14 +67,13 @@ set XERCES_ENDORSED_DIR_PATH=..\xalan-java\lib\endorsed;..\lib\endorsed
@echo on
"%_JAVACMD%" -mx1024m -Djava.endorsed.dirs=%XALAN_BUILD_DIR_PATH%;%XERCES_ENDORSED_DIR_PATH% -classpath "%_CLASSPATH%" org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
@echo off
+set _RC=%ERRORLEVEL%
goto end
:noJavaHome
echo Warning: JAVA_HOME environment variable is not set
+set _RC=-1
:end
-set _CLASSPATH=
-set _ANT_HOME=
-set _JAVACMD=
-set _ANT_JARS=
\ No newline at end of file
+exit /b %_RC%
diff --git a/build.sh b/build.sh
index a392f057..bf7bcb8f 100755
--- a/build.sh
+++ b/build.sh
@@ -93,7 +93,5 @@ echo Running: "$JAVACMD" -mx1024m -Djava.endorsed.dirs="$XALAN_BUILD_DIR_PATH:$X
"$JAVACMD" -mx1024m -Djava.endorsed.dirs="$XALAN_BUILD_DIR_PATH:$XERCES_ENDORSED_DIR_PATH" -classpath "$CLASSPATH" org.apache.tools.ant.Main "$@"
ant_rc=$?
-echo ANT RETURN CODE: $ant_rc
-
-echo "build.sh complete!"
+echo "build.sh complete with return code" $ant_rc
exit $ant_rc
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org