--- "Helliwell, Matthew" <[EMAIL PROTECTED]> wrote:
> I've wanted to use it when using a target to specify a prod/uat/dev
> build. I wanted to be able to type 'ant PROD'. It then picks up the
> appropriate properties file based on the target (eg 'PROD.properties').
> 
> I ended up using an explicit property, eg 'ant -Dtarget.name=PROD'

I posted a sample script that would let you say 'ant PROD', with .antrc
processing it into the property-define -- see:
  http://marc.theaimsgroup.com/?l=ant-user&m=101364053529833&w=2

At the moment, only an rc file in the user's home directory is processed,
but I'm checking with the other committers to see about allowing for one
under $ANT_HOME, so you might want to keep that in mind for maybe 1.5 (or
just modify your 'ant' script to do it now).

Diane

=====
([EMAIL PROTECTED])



__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to