, this would not work.
>
> -Rob Anderson
>
>
> > -Original Message-----
> > From: Bill Rich [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 20, 2007 11:36 PM
> > To: Ant Users List
> > Subject: Re: Check if directory is empty or not
>
todir="${directory.target.temp}" includeEmptyDirs="false"/>
file="${directory.target.temp}/my-dir-to-check"/>
the src directory is not copied if it is empty !
Anderson, Rob (Global Trade) wrote:
I have a build.xml that runs a custom task to import documents into a
document managemen
t Users List
> Subject: Re: Check if directory is empty or not
>
> A little while ago Jan Materne suggested the following for
> another question about files in a directory.
>
> name="dir" value="dir"/>
>
>
>
>
>
>
>
A little while ago Jan Materne suggested the following for another
question about files in a directory.
Can you use something similar, maybe with a * or **/*, and check if the
length of the file list is 0?
HTH Bill
Anderson, Rob (Global Trade) wrote:
I have a build.xml that
I have a build.xml that runs a custom task to import documents into a
document management system. After the custom import task runs I'd like
to check the load directory for anything that may have been left behind.
If the directory is not empty my build should fail.
Is there an easy way to check i