Modify

Ticket #307 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Replaceregexp filter works in Copy task but not Move task

Reported by: anonymous Owned by: mrook
Priority: minor Milestone: 2.4.0RC1
Component: phing-core Version: 2.3.2
Keywords: Cc:

Description

The following code fails to apply the regex replacement:

<?xml version="1.0"?>
<project name="Rollout" default="rollout" basedir=".">

<target name="rollout">

    <move file="sourcefile.txt" tofile="anotherfile.bak" overwrite="true">
        <filterchain>
            <replaceregexp>
                <regexp pattern="FOO" replace="BAR" ignoreCase="true"/>
            </replaceregexp>
        </filterchain>
    </move>
</target>

</project>

The exact same code with <copy /> instead of <move /> works as expected.

Attachments

Change History

comment:1 Changed 3 years ago by mrook

  • Owner changed from hans to mrook
  • Priority changed from major to minor
  • Status changed from new to assigned
  • Milestone set to 2.4.0

comment:2 Changed 2 years ago by mrook

(In [517]) Refs #307 - add test to testsuite

comment:3 Changed 2 years ago by mrook

(In [518]) Refs #307 - do not rename but instead copy & then delete files, this retains filterchain processing

comment:4 Changed 2 years ago by mrook

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

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

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.