Skip to content

Releases: VasekPurchart/Phing-Copy-Files-Task

2.0

31 Dec 12:54
2.0
f95c778
Compare
Choose a tag to compare

Maintenance

BC breaks: Since new language features from PHP 7.1 are used some method signatures have changed. This means that if you were extending/implementing them, you need to update the method signatures to match the new form.

1.0

27 Mar 19:21
Compare
Choose a tag to compare
1.0

Copy files with better control over copying than the default Phing CopyTask.

The main disadvantage of the default task is that it ignores the overwrite="false" setting (which is also default) and if the source file is newer, it always rewrites the target file (see phingofficial/phing#538). This is unexpected and potentially very dangerous behaviour especially when copying configuration files etc.

CopyFilesTask has much narrower use-cases, but offers you more control about the copied files. It works only with files (not directories or filesets) and you can specify how exactly each of the files should be copied and what to do when the target already exists.

See the readme for complete documentation