Wouldn't it be just as easy to use
  <mkdir dir="${test.data.dir}"/>
before the <junit> task?

A lot of tasks in ant would probably fail if a directory doesn't exist, not just this 
one.

Mitchell Ackermann

----- Original Message ----- 
From: Stephane Bailliez <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 2:35 AM
Subject: RE: junit.batchtest directory existence check


> -----Original Message-----
> From: J. Matthew Pryor [mailto:[EMAIL PROTECTED]]

>     <junit printsummary="yes" haltonfailure="no" 
> dir="${test.data.dir}">

[...]
> and the directory ${test.data.dir} does not exist, the build 
> fails with a very obscure Win32 can't create process error

[...]
> Anyway this is probably at least half a feature request, but 
> a simple one I guess.

I'm mixed on the need to 'check' even though this is simple, otherwise we
end up checking everything.
I would say that just like you would do it in Java it's part of the
preconditions.

Stephane

Reply via email to