From 4caafdc3d17c57f801b77650ba3920a6d995bb8b Mon Sep 17 00:00:00 2001 From: Syn Wee Quek Date: Thu, 29 Nov 2001 18:18:10 +0000 Subject: [PATCH] ICU-1559 Un-hard code the directories paths. X-SVN-Rev: 7171 --- icu4j/build.bat | 10 +++++----- icu4j/build.sh | 25 +++++++------------------ 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/icu4j/build.bat b/icu4j/build.bat index 1d1c3469531..fc3b93e3e91 100755 --- a/icu4j/build.bat +++ b/icu4j/build.bat @@ -1,15 +1,15 @@ @echo off REM ******************************************************************************* -REM * Copyright (C) 1997-2000, International Business Machines Corporation and * -REM * others. All Rights Reserved. * +REM * Copyright (C) 1997 - 2001, International Business Machines Corporation and +REM * others. All Rights Reserved. REM ******************************************************************************* REM $Source: /xsrl/Nsvn/icu/icu4j/Attic/build.bat,v $ -REM $Date: 2000/03/15 00:40:27 $ -REM $Revision: 1.4 $ +REM $Date: 2001/11/29 18:18:10 $ +REM $Revision: 1.5 $ REM ******************************************************************************* REM convience bat file to build with -java -classpath "build\icu4jtools.jar;jakarta-ant\lib\ant.jar;jakarta-ant\lib\xml.jar;%CLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 +java -classpath "%JAVA_HOME%\lib\tools.jar;%ANT_HOME%\lib\ant.jar;%CLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 diff --git a/icu4j/build.sh b/icu4j/build.sh index 8f5de2a6458..0285b76d5ae 100755 --- a/icu4j/build.sh +++ b/icu4j/build.sh @@ -1,26 +1,15 @@ #/* #******************************************************************************* -#* Copyright (C) 1997-2000, International Business Machines Corporation and * -#* others. All Rights Reserved. * -#******************************************************************************* +#* Copyright (C) 1997 - 2001, International Business Machines Corporation and +#* others. All Rights Reserved. #******************************************************************************* #* #* $Source: /xsrl/Nsvn/icu/icu4j/Attic/build.sh,v $ -#* $Date: 2000/03/15 00:40:27 $ -#* $Revision: 1.3 $ +#* $Date: 2001/11/29 18:18:10 $ +#* $Revision: 1.4 $ #* #***************************************************************************************** #*/ #!/bin/sh - -ADDL_CLASSPATH=build/icu4jtoolz.zip:jakarta-ant/lib/ant.jar:jakarta-ant/lib/xml.jar - -if [ "$CLASSPATH" != "" ] ; then - CLASSPATH=$CLASSPATH:$ADDL_CLASSPATH -else - CLASSPATH=$ADDL_CLASSPATH -fi -export CLASSPATH - -echo Building with classpath $CLASSPATH - -java org.apache.tools.ant.Main $* +CLASSPATH=$JAVA_HOME/tools.jar:$ANT_HOME/lib/ant.jar +echo java -classpath $CLASSPATH org.apache.tools.ant.Main $* +java -classpath $CLASSPATH org.apache.tools.ant.Main $*