Ticket #270 (closed enhancement: fixed)
[patch] ReplaceRegExp
| Reported by: | jbondc@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4.0RC1 |
| Component: | phing-tasks-ext | Version: | |
| Keywords: | Cc: |
Description
Another 'port' from ant:
http://ant.apache.org/manual/OptionalTasks/replaceregexp.html
It's missing flags and byline... RegularExpression would need to be extended to at least support 'flags'
It allows:
<replaceregexp match="%B" replace="${project.build}"
<fileset dir="${releaseDir}/includes">
<include pattern="*.ini"/>
</fileset>
</replaceregexp>
Instead of:
<reflexive>
<fileset dir="${releaseDir}/includes">
<include pattern="*.ini"/>
</fileset> <filterchain>
<replaceregexp>
<regexp pattern="%B" replace="${project.build}"/>
</replaceregexp>
</filterchain>
</reflexive>
Attachments
Change History
comment:1 Changed 3 years ago by hans
- Status changed from new to assigned
- Milestone set to 2.4.0
Thanks for the patch; I'm moving this ahead to 2.4 branch.

