I don't know why I didn't think of using the loadfile task before, but this is what I have now and it works pretty well:

 

<loadfile file="build.number" property="buildnumber.version" failonerror="true" unless="${property::exists('buildnumber.version')}"/>

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wang, Jason @ Newport MacArthur
Sent: Tuesday, June 14, 2005 8:34 AM
To: 'nantcontrib-developer@lists.sourceforge.net'
Subject: [NAntC-Dev] How do I retrieve the current version number w/o changing it?

 

Hi all,

 

            How do I retrieve the current version number w/o changing it?  I have a deployment target that uses robocopy to deploy my web app.  I would like to set the source folder to the last built output folder (i.e. c:\build\1.0.57.0).

 

Thanks,

 

Jason

Reply via email to