You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by merlin_the_happy_pig <ma...@hotmail.com> on 2008/09/03 19:51:16 UTC

Can you set a property using input task into a properties file

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


Re: Can you set a property using input task into a properties file

Posted by "Scot P. Floess" <fl...@mindspring.com>.
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