ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: handy way to check if a dir is empty or not
Date Fri, 18 Feb 2005 14:34:58 GMT
no, that´s java code. but you can put that into a <script> task.

Jan

> -----Ursprüngliche Nachricht-----
> Von: Michael Wang (IT) [mailto:MWANG@bordersgroupinc.com]
> Gesendet am: Freitag, 18. Februar 2005 15:29
> An: Ant Users List
> Betreff: RE: handy way to check if a dir is empty or not
> 
> thanks for the reply, howover, is this ANT script?
> 
> -----Original Message-----
> From: Mark Benussi [mailto:mark_benussi@hotmail.com]
> Sent: Friday, February 18, 2005 9:28 AM
> To: user@ant.apache.org
> Subject: RE: handy way to check if a dir is empty or not
> 
> 
> if(file.isDirectory() && (file.list()).length == 0) {
>   // Directory is empty
> }
> 
> ----Original Message Follows----
> From: "Michael Wang (IT)" <MWANG@bordersgroupinc.com>
> Reply-To: "Ant Users List" <user@ant.apache.org>
> To: "Ant Users List" <user@ant.apache.org>
> Subject: handy way to check if a dir is empty or not
> Date: Fri, 18 Feb 2005 09:17:28 -0500
> 
> is there a handy way to do this? thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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