Take a look at the input task and the echo task...
Use input to get the user's input to a property.
Then use echo to whatever file you want...something like:
<input message = "enter data: " addproperty="someprop"/>
<echo message="someprop=${someprop}" file="myfile.prop"/>
HTH,
Flossy
On Wed, 3 Sep 2008, merlin_the_happy_pig wrote:
>
> Ant newbie here - I need to capture some user input and then I want to set it
> to a properties file so that I can use it later. Does anybody know how to do
> this??
> --
> View this message in context: http://www.nabble.com/Can-you-set-a-property-using-input-task-into-a-properties-file-tp19294414p19294414.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|