· Notes

Ant “replace” task does not preserve Unix file permissions

This is probably a well-known fact for everyone who has used Ant on Unix for a while, but an annoying discovery for me who have been hiding under a C++ rock. The five year old bug report File Permissions not preserved in replace task pretty much says it all: Java couldn’t stat files, and it seems like it still can’t.

Update The “replace” task destroys file ownership too, of course.

Tags: Ant Java Unix

1 comment

Comments are archived from the original blog and closed.

  1. silvian ·

    Use “chmod” task to change file permissions.