AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

test for file with Ant

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools
View previous topic :: View next topic  
Author Message
Enrique
Guest





PostPosted: Mon May 03, 2004 4:53 pm    Post subject: test for file with Ant Reply with quote



Is there a way to test if a file (or directory) exists with Apache
Ant? The manual has a <condition> element and a <filesmatch> element,
but together they appear to compare files only. Could <filesmatch> be
coerced into checking for the existence of a single file?
Back to top
nobody important
Guest





PostPosted: Tue May 04, 2004 7:02 am    Post subject: Re: test for file with Ant Reply with quote



I haven't tested it, but there's another task: Available -
http://ant.apache.org/manual/CoreTasks/available.html - which you might find
interesting.

You could couple this with a Condition and the Target-conditions "if" or
"unless"

/nobody important

"Enrique" <enrique (AT) pineda (DOT) org> wrote

Quote:
Is there a way to test if a file (or directory) exists with Apache
Ant? The manual has a <condition> element and a <filesmatch> element,
but together they appear to compare files only. Could <filesmatch> be
coerced into checking for the existence of a single file?



Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.