ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Tiley" <sti...@meraksystems.com>
Subject RE: Replacing text in files
Date Fri, 25 May 2007 11:53:32 GMT
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:l.monsees@atlantisgmbh.de] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message