It's not that Ant doesn't support this - it's that the JDK does not provide a way to query or access file attributes.

The short answer is that if you want to do this you'll need to write a custom task the uses JNI or execs a native executable to get this information.

JEC
____________________________________________________________________________________________
Jeffrey E. (Jeff) Care
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
WebSphere Mosiac
WebSphere Brandmark



[EMAIL PROTECTED] wrote on 06/08/2006 03:30:10 PM:

> Has anyone know how (short of writing a custom task or selector) to create
> a file set based on the files' attribute flags? Specifically, I'd like to
> create a set of files that have the Windows "archive" bit set. I saw the
> Ant Attrib task, but it appears to be write only. I'm looking for a way to
> publish a large Web site (10K+ files), using the "archive" flag, but so far
> it seems Ant doesn't support this.
>
> If Ant doesn't presently have this ability, does anyone know if it will in
> the future?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to