> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Praveen Babu
> Sent: woensdag 22 december 2004 15:03
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] need help on nant
> 
> Hi ,
> I am Naren
> 
> I have one text file, which contains "1.0.0" value. My problem how to 
> assign this value to lacal variable in nant build file. I need this 
> value in two tasks.
> can you give me solution to this problem.
> advance thanks

Try using <loadfile> :

<loadfile property="version" file="version.txt" />
<echo message="version=${version}" />

Hope this helps,

Gert



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to