ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: Proposed Enhancement to "ant.bat" script
Date Tue, 05 Dec 2000 17:39:31 GMT
Conor MacNeill wrote:

> Craig,
>
> > -----Original Message-----
> > From: Craig R. McClanahan [mailto:Craig.McClanahan@eng.sun.com]
> > In order to simulate this capability on the Windows platform,
> > I propose that the
> > following line be added before Ant is actually executed:
> >
> >     if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
> >
> > and the following line after Ant is executed:
> >
> >     if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
> >
> > Why two scripts?
>
> Maybe it would be better to have a single script and two modes.
>
> if exist "%USERPROFILE%\antrc.bat" call "%HOME%\antrc.bat" start
>
> and then after ant,
>
> if exist "%USERPROFILE%\antrc.bat" call "%HOME%\antrc_post.bat" stop
>
> Keeps it all in one place. Also I replaced %HOME% with %USERPROFILE%. I
> don't think %HOME% is set under either NT or Win9X. USERPROFILE is set
> under NT but a Win9X appropriate location should also be determined.
>
> Conor

That (single script) would be fine with me, although we probably need at least a
simple example in the docs for people who are not batch file gurus.  I'm -0 on
USERPROFILE instead -- I set up HOME in my own (Win98) environment for stuff
like this, and both CVS and SSH respect it.

Craig



Mime
View raw message