diff --git a/classes/phing/util/FileUtils.php b/classes/phing/util/FileUtils.php
index <HASH>..<HASH> 100644
--- a/classes/phing/util/FileUtils.php
+++ b/classes/phing/util/FileUtils.php
@@ -99,6 +99,9 @@ class FileUtils {
                     $in->close();
                 if ( $out !== null )
                     $out->close();
+
+                $destFile->setMode($sourceFile->getMode());
+
             } else {
                 // simple copy (no filtering)
                 $sourceFile->copyTo($destFile);
Refs #<I> - preserve file mode (patch by Merkas)