ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
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
system.
Look at extending the <copy/> task or the <sync/> task (which exists in ant
1.6alpha).
Let us know if you find a solution.
Yours
Antoine
----- Original Message -----
From: "Peter Fischer" <peter.fischer@terrasel.de>
To: <user@ant.apache.org>
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
> anotheruser@anotherhost.domain.net (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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message