On 06/08/2010 10:48, Rajesh Kumar wrote:

> I have one file called djir.ear and I am trying to create a folder with the
> same name "jir.ear" same location using ant script.
> but i get error message saying that
> 
> *Code: *
> ------------------------------
> Unable to create directory as a file alr
> eady exists with that name
> ------------------------------
> 
> Can you suggest me any solution for this? as i build is failing and mkdir do
> not support failonerror propertry :(

Are you attempting this on windows?

Without using ant, windows prevents me making a new folder with the same
name as an existing file on a NTFS volume.

I suspect this is an operating system feature and not an ant problem?

Can you use a different name or place the folder somewhere else?  What
do you want to do with the folder once it is mkdir'd?

-- 
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to