Hi, Could someone checkout the modifications I made to the .bat files. Make sure they all work. Basically what I wanted was first to check if ../jakarta-avalon/tools exists and if so set AVALON_TOOLS to that, else check if ./tools exists and set ENV var or if not exist fail with a message. I needed this so that distributions begin working again since we moved all tools into one CVS. I modified all CVSes so if any works they all should work ;) On Thu, 19 Jul 2001 18:51, [EMAIL PROTECTED] wrote: > donaldp 01/07/19 01:51:36 > > Modified: . build.bat > Log: > Made it possible to use the same script for distributed versions and CVS > version . This change is required as tools dir is only included in main > AValon CVS now. > > Revision Changes Path > 1.4 +14 -4 jakarta-avalon-logkit/build.bat > > Index: build.bat > =================================================================== > RCS file: /home/cvs/jakarta-avalon-logkit/build.bat,v > retrieving revision 1.3 > retrieving revision 1.4 > diff -u -r1.3 -r1.4 > --- build.bat 2001/06/21 14:29:44 1.3 > +++ build.bat 2001/07/19 08:51:36 1.4 > @@ -1,13 +1,23 @@ > @echo off > > -echo ------------------- > -echo LogKit Build System > -echo ------------------- > +echo ------------ > +echo Build System > +echo ------------ > > if not "%AVALON_TOOLS%"=="" goto runAnt > -set AVALON_TOOLS=..\jakarta-avalon\tools > > +if exist "..\jakarta-avalon\tools" set > AVALON_TOOLS=..\jakarta-avalon\tools +if exist "tools" set > AVALON_TOOLS=tools > + > +if not "%AVALON_TOOLS%"=="" goto runAnt > + > +echo "Unable to locate tools directory at " > +echo "../jakarta-avalon/tools/ or tools/. " > +echo "Aborting." > +goto end > + > > :runAnt > > set ANT_HOME=%AVALON_TOOLS% > %AVALON_TOOLS%/bin/ant -logger org.apache.tools.ant.NoBannerLogger > -emacs -Dtools.dir=%AVALON_TOOLS% %1 %2 %3 %4 %5 %6 %7 %8 > > +:end > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------* --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
