You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Detlef Brendle <de...@canoo.com> on 2001/07/12 09:03:01 UTC

how to pass args to xml

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?

detlef


Re: how to pass args to xml

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 12 Jul 2001, Detlef Brendle <de...@canoo.com> 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.

use a property

ant -Dtag=my_tag

and use ${tag} in the cvs task.

Stefan