Modify

Ticket #270 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[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

replaceregexp.patch Download (7.2 KB) - added by jbondc@… 3 years ago.

Change History

Changed 3 years ago by jbondc@…

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.

comment:3 Changed 3 years ago by mrook

  • Owner changed from hans to mrook
  • Status changed from assigned to new
  • Type changed from defect to enhancement

comment:3 Changed 3 years ago by mrook

(In [441]) Refs #270 - add replaceregexp task

comment:4 Changed 3 years ago by mrook

  • Status changed from new to closed
  • Resolution set to fixed

This bug has been fixed in the SVN tree, revision 441.

Thank you for the report, and for helping us make Phing better!

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.