Guys take a look at <selectors> that is one called <size/> which I guess selects files based on its size. Would that do?
http://ant.apache.org/manual/CoreTypes/custom-programming.html#customsel ectors Jose Alberto > -----Original Message----- > From: Steve Loughran [mailto:[EMAIL PROTECTED] > Sent: 19 May 2004 09:54 > To: Ant Developers List > Subject: Re: Question of checking file size > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]