From f492cc5278c29092c6d1b90491f66839509329d1 Mon Sep 17 00:00:00 2001 From: Antoine Levy-Lambert Date: Mon, 10 Nov 2003 16:48:56 +0000 Subject: [PATCH] Make ModifiedSelectorTest pass when started through build.sh or build.bat PR: 24481 Submitted by: Florian.G. Haas (f dot g dot haas at gmx dot net) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275628 13f79535-47bb-0310-9956-ffa450edef68 --- build.bat | 2 +- build.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.bat b/build.bat index ec901a1f1..3faf80fc3 100755 --- a/build.bat +++ b/build.bat @@ -4,7 +4,7 @@ REM Copyright (c) 2000-2003 The Apache Software Foundation. All rights REM reserved. set REAL_ANT_HOME=%ANT_HOME% -set ANT_HOME=bootstrap +set ANT_HOME=%~dp0\bootstrap if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt call bootstrap.bat if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt diff --git a/build.sh b/build.sh index 328123542..dfbaaa8f6 100755 --- a/build.sh +++ b/build.sh @@ -16,7 +16,11 @@ case "`uname`" in esac REALANTHOME=$ANT_HOME -ANT_HOME=bootstrap +if [ -z $PWD ]; then + ANT_HOME=./bootstrap +else + ANT_HOME=$PWD/bootstrap +fi export ANT_HOME if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then