zongaro 2004/02/24 17:09:55 Modified: test Tag: xslt20-compiled build.bat Log: Patch for bug report 27016 from Sarah McNamara (mcnamara () ca ! ibm ! com). Work-around to allow the Ant <property environment="ENV"> statement to work on Windows 2003. The word-around is to explicitly set the Java os.name system property to "Windows_NT". Revision Changes Path No revision No revision 1.13.2.1 +11 -1 xml-xalan/test/build.bat Index: build.bat =================================================================== RCS file: /home/cvs/xml-xalan/test/build.bat,v retrieving revision 1.13 retrieving revision 1.13.2.1 diff -u -r1.13 -r1.13.2.1 --- build.bat 2 Apr 2003 16:16:25 -0000 1.13 +++ build.bat 25 Feb 2004 01:09:55 -0000 1.13.2.1 @@ -69,6 +69,16 @@ if "%ANT_HOME%"=="" set _ANT_HOME=..\java if not "%ANT_HOME%"=="" set _ANT_HOME=%ANT_HOME% +rem Patch for Ant limitation: +rem <property environment="xxx" /> is only available on certain platforms. +rem Apparently Windows 2003 is not one of the supported platforms. +rem A workaround (according to Ant's FAQ) is to set the os.name=Windows_NT +rem before calling Ant. +rem Since this is a Windows batch file and I don't think Xalan's test +rem harness or targets care which Windows version we're running on, its +rem probably safe to use this workaround. +set _ANT_OPTS=%ANT_OPTS% -Dos.name=Windows_NT + rem Note: classpath handling is special for testing Xalan rem If PARSER_JAR blank, default to xerces in the xalan dir if "%PARSER_JAR%" == "" set _PARSER_JAR=..\java\bin\xercesImpl.jar @@ -105,7 +115,7 @@ :checkJikes rem also pass along the selected parser to Ant rem Note: we don't need to do this for xml-apis.jar -set _ANT_OPTS=%ANT_OPTS% -Dparserjar=%_PARSER_JAR% +set _ANT_OPTS=%_ANT_OPTS% -Dparserjar=%_PARSER_JAR% if not "%JIKESPATH%" == "" goto runAntWithJikes :runAnt
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
