ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Question of checking file size
Date Wed, 19 May 2004 08:53:56 GMT
Robert MacMunn wrote:
> Hello,
>         I just started using Ant.  I was wondering if anyone could tell
> me how to check a size of a file.
> I want to skip a process if a certain file is empty.
> Thanks
> Bob

There is nothing explicitly to do that. But there is a <filesmatch> 
condition. If you have a template file that is empty, you could match 
your target file against that, and so know if it is empty too.

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

View raw message