Modify

Ticket #448 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

PatchTask

Reported by: Merkas <mk@…> Owned by: mrook
Priority: minor Milestone: 2.4.1
Component: phing-tasks-ext Version:
Keywords: Cc:

Description

I wrote a task to patch files. It based on Apache Ant  PatchTask and implements all (I hope) it's attributes with some differences:

  1. It uses batch mode (--batch option always set)
  1. If "strip" argument not set it will by 0 by default
  1. "dir" attribute not applyed because I'm not shure how to do this in a "phing way"

And also I'm not sure about Apache License. I've included original license notice but is it enough?

Any way, I hope this task will be usefull. And I can maintain it if needed.

Attachments

PatchTask.php Download (5.9 KB) - added by Merkas <mk@…> 2 years ago.
PatchTask.2.php Download (5.4 KB) - added by Merkas <mk@…> 2 years ago.
PatchTask with "dir" attribute implemented
PatchTask.3.php Download (5.4 KB) - added by Merkas <mk@…> 2 years ago.
Fix for FreeBSD version of patch
PatchTask.4.php Download (5.4 KB) - added by Merkas <mk@…> 2 years ago.
Fixed "haltOnFailure"
phing-trunk.patch Download (5.6 KB) - added by Merkas <mk@…> 2 years ago.
Documentation for PatchTask

Change History

Changed 2 years ago by Merkas <mk@…>

Changed 2 years ago by Merkas <mk@…>

PatchTask with "dir" attribute implemented

comment:1 Changed 2 years ago by Merkas <mk@…>

I was stupid. Now "dir" implemented.

Changed 2 years ago by Merkas <mk@…>

Fix for FreeBSD version of patch

comment:2 Changed 2 years ago by mrook

  • Status changed from new to assigned
  • Milestone set to 2.4.1

comment:3 Changed 2 years ago by mrook

Thanks for the patch! Could you extend it with some documentation (appendix c - optional tasks)?

comment:4 Changed 2 years ago by Merkas <mk@…>

Ok, I'll try. But my English not good enough to writing docs, I think.

Changed 2 years ago by Merkas <mk@…>

Fixed "haltOnFailure"

Changed 2 years ago by Merkas <mk@…>

Documentation for PatchTask

comment:5 Changed 2 years ago by mrook

(In [746]) Refs #448 - add patch task (patch by Merkas)

comment:6 Changed 2 years ago by mrook

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

Task added in r746, thanks!

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.