ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: Question of checking file size
Date Wed, 19 May 2004 11:30:33 GMT
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:steve_l@iseran.com] 
> 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: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message