ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <>
Subject Re: File Sets Based on File Attributes
Date Thu, 08 Jun 2006 19:45:10 GMT
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 


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

RWADAMS1@UP.COM wrote on 06/08/2006 03:30:10 PM:

> Has anyone know how (short of writing a custom task or selector) to 
> a file set based on the files' attribute flags? Specifically, I'd like 
> 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 
> publish a large Web site (10K+ files), using the "archive" flag, but so 
> it seems Ant doesn't support this.
> If Ant doesn't presently have this ability, does anyone know if it will 
> the future?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message