Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

ANT- checking for the existence of files


Hey there,

I'm currently converting some existing build functionality to use ANT.  All is good, except that in the original, the build contained some validation checks, things like lookinf for the existance of directories, and files within.

I'm wanting to know if I can use an ANT Task to examine a give dir, recursively, testing for emptiness, ceratin fields etc.

any suggestions?

thanks

0
RichardStarkey
Asked:
RichardStarkey
  • 2
  • 2
2 Solutions
 
RichardStarkeyAuthor Commented:
thanks objects,

but I still can't see how I can check if a dir is empty?

thanks
0
 
objectsCommented:
you should be able to achive that with isfileselected and the depth selector

http://ant.apache.org/manual/CoreTypes/selectors.html
0
 
girionisCommented:
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now