Have a look at the Replace task in ant.
I am using that task for a similar operation in my build.

http://ant.apache.org/manual/CoreTasks/replace.html

HTH
Sean



-----Original Message-----
From: Lars Monsees [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 25, 2007 7:50 AM
To: user@ant.apache.org
Subject: Replacing text in files

Hello,

I am compiling a Visual Basic project and want to set the version number inside 
the project file (project.vbp). This looks like:

 HelpContextID="0"
 CompatibleMode="0"
 MajorVer=3
 MinorVer=8
 RevisionVer=38
 [...]

How can I replace a line from this file with some other text? I thought about 
"loadfile" or "patch", but don“t know exactly if these would work.


Lars

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to