ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <>
Subject Re: Passing command Line args for a list
Date Sat, 05 Mar 2016 12:44:33 GMT

I'm confused as you are asking about using command line params (via the 
-D) but then reusing those for the input task.

As an example from your post:

ant -f build.xml addNodes -Dagents="d01, d02, d03" -D{node???}='node1' 
-D{node_description???}='node1 description'

Note you list -Dagents

In your target I see this:

<input message="Agents Name Seperated By , :" addproperty="agents" />

So the property "agents" is both passed in command line and then reused 
inside with an input task.

Same with the properties node and node_description.

The for loop should have no trouble using properties denoted on the 
command line with the -D

The -D will become a property in your ant script.

On Fri, 4 Mar 2016, Petronius wrote:

> We have to have these inputs for manual execution
> Thanks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Scot P. Floess             RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare

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

View raw message