ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <>
Subject Check if directory is empty or not
Date Fri, 20 Apr 2007 17:31:43 GMT
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 if a directory is empty or not?
Thanks in advance.

Robert Anderson
Sr. System Engineer
Nike - Global Trade IT

Never let me slip, cuz if I slip, then I'm slippin. - Dr. Dre


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