Robert, thanks for a nice, concise answer.
However, just for the benefit of Detlef and others:
1. This question should have gone to ant-users not ant-developers.
2. This issue is in the Ant 1.2 and 1.3 documentation:
> You can also set properties that override properties specified in the
> buildfile (see the property task).
> This can be done with the -Dproperty=value option, where property is the name
> of the property,
> and value is the value for that property. This can also be used to pass in
> the value of some
> environment variables. You can also access environment variables using the
> property task. Just pass
> -DMYVAR=%MYVAR% (Windows) or -DMYVAR=$MYVAR (Unix) to Ant � you can then
> access these
> variables inside your buildfile as ${MYVAR}.
Robert Watkins wrote:
>
> Detlef Brendle wrote:
> > how can I pass command line parameters to the ant script ?
> > I want to use a cvs command to release versions. I would like
> > to pass the
> > release tag as argument to the xml target.
> >
> > how can I do this?
>
> ant -D<name>=<value> lets you define values for properties.
>
> These can then be used within your Ant script as any normal property:
> ${<name>} will put in <value>
>
> Robert.