Ticket #270 (assigned defect)

Opened 4 months ago

Last modified 3 months ago

[patch] ReplaceRegExp

Reported by: jbondc@openmv.com Assigned to: hans (accepted)
Priority: minor Milestone: 2.4.0
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

replaceregexp.patch (7.2 kB) - added by jbondc@openmv.com on 08/25/08 13:59:04.

Change History

08/25/08 13:59:04 changed by jbondc@openmv.com

  • attachment replaceregexp.patch added.

10/21/08 13:02:46 changed 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.


Add/Change #270 ([patch] ReplaceRegExp)