Hi all,
   I wish to summarize on this mail, what changes were done today
(which have been, committed to XalanJ repos) to the ant build scripts,
for the xalan-java and xalan-test repos/folders. These changes, were
done to the xalan-java\build.bat and xalan-test\build.bat files.

These changes are following (these describe essentially, how ant jars
are found for the build),

1) Changes to xalan-java\build.bat file

rem Default ANT_HOME to the one what user has set
if not "%ANT_HOME%"=="" set _ANT_HOME=%ANT_HOME%
if "%ANT_HOME%"=="" set _ANT_HOME=.

if EXIST "%_ANT_HOME%\tools\ant.jar" (
   set _ANT_JARS=%_ANT_HOME%\tools\ant.jar
) else (
   set _ANT_JARS=%_ANT_HOME%\lib\ant.jar;%_ANT_HOME%\lib\ant-launcher.jar
)

set _CLASSPATH=%_ANT_JARS%; .......

"%_JAVACMD%" ..... -classpath "%_CLASSPATH%" org.apache.tools.ant.Main ........

2) Changes to xalan-test\build.bat file

(the below mentioned changes, can now handle running XalanJ tests from
xalan-test repos location, and also from within the xalan-test folder
of src distribution)

rem Default ANT_HOME to the one what user has set
if not "%ANT_HOME%"=="" set _ANT_HOME=%ANT_HOME%
if "%ANT_HOME%"=="" set _ANT_HOME=..\xalan-java

if EXIST "%_ANT_HOME%\tools\ant.jar" (
   set _ANT_JARS=%_ANT_HOME%\tools\ant.jar
) else if EXIST "%_ANT_HOME%\..\tools\ant.jar" (
   set _ANT_JARS=%_ANT_HOME%\..\tools\ant.jar
) else (
   set _ANT_JARS=%_ANT_HOME%\lib\ant.jar;%_ANT_HOME%\lib\ant-launcher.jar
)

if not "%JARDIR%" == "" set _CLASSPATH=.....%_ANT_JARS%;%CLASSPATH%

"%_JAVACMD%" ....... -classpath "%_CLASSPATH%" org.apache.tools.ant.Main .......

The XalanJ readme file, was also updated at
https://gitbox.apache.org/repos/asf?p=xalan-java.git;a=blob_plain;f=README;hb=refs/heads/xalan-j_2_7_1_maint,
which now has all the latest information about how to build XalanJ for
distribution, and how to run XalanJ tests from xalan-test repos
location and the xalan-test folder of src distribution.

Please review the above mentioned details, and let us know if there
are any feedback.

On Mon, Dec 26, 2022 at 4:40 PM Mukul Gandhi <muk...@apache.org> wrote:
>
> Hi Gary & all,
>     The fixes for the following major issue, as written by you within
> an earlier mail have been done (and have been committed to, XalanJ
> repos as well),
>
> <quote>
>     The important thing here is that if an environment variable like
> ANT_HOME is already set, it should *not* be overwritten.
> </quote>



-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
For additional commands, e-mail: dev-h...@xalan.apache.org

Reply via email to