 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Enrique Guest
|
Posted: Mon May 03, 2004 4:53 pm Post subject: test for file with Ant |
|
|
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
|
Posted: Tue May 04, 2004 7:02 am Post subject: Re: test for file with Ant |
|
|
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 |
|
 |
|
|
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
|
|