cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2 build.bat
Date Thu, 28 Feb 2002 21:56:39 GMT
vgritsenko    02/02/28 13:56:39

  Modified:    .        build.bat
  Log:
  fix 'Weird problem with JDK 1.4 on win32'
  
  Revision  Changes    Path
  1.18      +14 -3     xml-cocoon2/build.bat
  
  Index: build.bat
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/build.bat,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- build.bat	20 Feb 2002 23:31:18 -0000	1.17
  +++ build.bat	28 Feb 2002 21:56:39 -0000	1.18
  @@ -2,7 +2,7 @@
   rem ----------------------------------------------------------------------------
   rem build.bat - Win32 Build Script for Apache Cocoon
   rem
  -rem $Id: build.bat,v 1.17 2002/02/20 23:31:18 stefano Exp $
  +rem $Id: build.bat,v 1.18 2002/02/28 21:56:39 vgritsenko Exp $
   rem ----------------------------------------------------------------------------
   
   rem ----- Copy Xalan and Xerces for the build system    ------------------------
  @@ -12,12 +12,23 @@
   
   rem ----- Verify and Set Required Environment Variables ------------------------
   
  -rem if not "%ANT_HOME%" == "" goto gotAntHome
  +rem ----- Use Java in JAVA_HOME if JAVA_HOME is set.
  +set OLD_PATH=%PATH%
  +if "%JAVA_HOME%" == "" goto noJavaHome
  +echo Using Java from %JAVA_HOME%
  +set PATH=%JAVA_HOME%\bin
  +:noJavaHome
  +
  +rem ----- Use Ant shipped with Cocoon. Ignore installed in the system Ant
   set OLD_ANT_HOME=%ANT_HOME%
   set ANT_HOME=tools
  -:gotAntHome
   
   call %ANT_HOME%\bin\ant %1 %2 %3 %4 %5 %6 %7 %8 %9
   
  +rem ----- Restore ANT_HOME
   set ANT_HOME=%OLD_ANT_HOME%
   set OLD_ANT_HOME=
  +
  +rem ----- Restore PATH
  +set PATH=%OLD_PATH%
  +set OLD_PATH=
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message