Solved

ANT- checking for the existence of files

Posted on 2006-06-21
5
202 Views
Last Modified: 2010-03-31

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
Comment
Question by:RichardStarkey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Author Comment

by:RichardStarkey
ID: 16957580
thanks objects,

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

thanks
0
 
LVL 92

Assisted Solution

by:objects
objects earned 125 total points
ID: 16957615
you should be able to achive that with isfileselected and the depth selector

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

Accepted Solution

by:
girionis earned 125 total points
ID: 16957620
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question