Grokbase Groups Ant user March 2016
FAQ
So I see in your example below some input tasks. I'm guessing you'd
rather not using input?
On Fri, 4 Mar 2016, Petronius wrote:

Hello

We are tyring to automate an ant task, but finding it impossible to pass a
command line argument to a property inside a list.

We need to pass Name and Description for each agent specified from the
command line. for ex:
ant -f build.xml addNodes -Dagents="d01, d02, d03" -D{node???}='node1' -
D{node_description???}='node1 description'

each agent d01/d02/d03 will need have name and description.

<target name="addNodes" depends="clean">
<input message="Agents Name Seperated By , :" addproperty="agents" />
<for list="${agents}" delimiter="," param="agent">
<sequential>
<input message="Node Name:" addproperty="node" />
<input message="Node Description:" addproperty="node_description" />
<exec>
<!-- external task -->
</exec>
<var name="node" unset="true"/>
</sequential>
</for>
</target>

Any suggestions is greatly appreciated.

thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Scot P. Floess RHCT (Certificate Number 605010084735240)
Chief Architect FlossWare http://sourceforge.net/projects/flossware
                             http://flossware.sourceforge.net
                             https://github.com/organizations/FlossWare

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 7 | next ›
Discussion Overview
groupuser @
categoriesant
postedMar 4, '16 at 5:40p
activeMar 9, '16 at 3:35p
posts7
users3
websiteant.apache.org

People

Translate

site design / logo © 2018 Grokbase