Hello,

> /*
> 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. */ 
> 
> use a filterchain with replaceregex or replacestring
> 

it now works this way:

<target name="version_into_vbp">
  <replaceregexp file="${compile.project.dir}/${compile.project.vbp}"
match="MajorVer=(.*)" replace="MajorVer=${version.major}"/>
  <replaceregexp file="${compile.project.dir}/${compile.project.vbp}"
match="MinorVer=(.*)" replace="MinorVer=${version.minor}="/>
  <replaceregexp file="${compile.project.dir}/${compile.project.vbp}"
match="RevisionVer=(.*)" replace="RevisionVer=${version.revision}="/>
</target>

In case anyone else needs this some time.

Lars


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

Reply via email to