ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lennart Hellström (HF/EBC) <>
Subject Reading file attributes
Date Tue, 28 Sep 2004 09:04:27 GMT
I want to copy a file to a destination file only if the destination file is not readonly (it
might be checked in on the version control system)

I tried using <copy> with failOnError="false" but strangely the build fails anyway when
the destination file is readonly.

Is there some way to look at the file's attributes before deciding to copy or not? 
<Attrib> seems to only change the file attributes, and that's not what I want.

/ Lelle

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

View raw message