Thanks Steve.
   What I did is run a perl script that passed the file size back to the
ant script, then used the loadfile task.

I am going to try to use just the load file task. It looks like if the
file is empty it doesn't set the property. Have to test it out though.

Thanks

Bob


-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 19, 2004 4:54 AM
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]

Reply via email to