ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simeon H.K. Fitch" <>
Subject Re: Proposed Enhancement to "ant.bat" script
Date Tue, 05 Dec 2000 01:36:11 GMT
On Mon, Dec 04, 2000 at 09:59:26AM -0800, Craig R. McClanahan wrote:
> 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?  Because in the Unix case you typically set environment
> variables that affect only the script that is currently running, whereas in
> Windows the environment variables are essentially global.  Having two scripts
> would let you set up (for example) a custom classpath in the antrc_pre.bat
> script, and clean it up again in antrc_post.bat.
> What do you think?

I like it! +1. Seems only fair to give those impaired with Windows as
much of the Unix power as we can share ;-)


Mustard Seed Software

View raw message