Modify ↓
Ticket #307 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.
