ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: copying files with NTFS-ACL ( a la "xcopy /o")
Date Fri, 27 Jun 2003 16:01:58 GMT
Hi Peter,
NTFS-ACL mean Windows NT File Systems Access Control Lists ?
There is no support in ant for that. You might want to look at the page
listing external tools or search the web concerning this.
It is possible that you need to develop your own custom task, with JNI to
read the ACLs on the source system and to restore them on the destination
Look at extending the <copy/> task or the <sync/> task (which exists in ant
Let us know if you find a solution.
----- Original Message -----
From: "Peter Fischer" <>
To: <>
Sent: Friday, June 27, 2003 4:09 PM
Subject: copying files with NTFS-ACL ( a la "xcopy /o")

> Hi all,
> I am looking for a way to copy entire directory trees (filesets minus
> some excludes) across hosts, while preserving file ownership and file
> permissions.
> Thus I needed a "xcopy /o"-wrapper task for copying to mapped drives
> or something to serialize a "file with ACL"-object in order to send it
> to another ant (rant - Remote ant), which would then deserialize it and
> put it as file on the disk.
> For *NIXers:
> I wanted to play the good old
> "user@host > (cd /from && tar -cf -) | ssh
> (cd /to && tar -xf - ) "
> game - this time from W2k to W2k...
> If anybody has tried this yet, please give me a hint.
> Thank you very much in advance,
> Peter
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message