Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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