ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Salter <>
Subject Re: Unable to create directory as a file already exists with that name
Date Fri, 06 Aug 2010 10:22:26 GMT
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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message