You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/06/22 11:33:14 UTC

[Bug 56619] Allow specifying file mode in so that can use it through resource collections

https://issues.apache.org/bugzilla/show_bug.cgi?id=56619

--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
with the changes you propose we wouldn't necessarily need to add mode to
fileset as you could still use zio/tarfileset to add the mode.  In fact I think
you'd probably even keep the mode through union (casting up to ArchiveResource)
right now if you used tarfilesets to build up your union.  The point where you
lose mode information is when mappedresources comes into the mix.

In addition to the changes you propose we'd also need to modify
ResourceDecorator so the mode doesn't get lost.

If you look into the implementation of <tar> you'll see it also has TarFileSet
hardcoded when it comes to overriding the mode of resources - <zip> and the
compress antlib do better here, but they still special cases ArchiveFileSet. 
In the end you'll probably want to add dir/filemode to ResourceCollection as
well.

-- 
You are receiving this mail because:
You are the assignee for the bug.