ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Determine target's name
Date Tue, 26 Feb 2002 12:07:39 GMT
On Tue, 26 Feb 2002, Matthew Helliwell <>

> 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
> '').

If you load these properties inside the target, the name already is
predetermined, if you do so in a common target the others depend upon,
you could do something like

<target name="PROD">
  <antcall target="real-target">
    <param name="" value="PROD" />

and similar for uat or dev.

> I ended up using an explicit property, eg 'ant'

This is the way I would go, yes.  But then again, I prefer things to
be explicit 8-)


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message