You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by KrustyDerClown <Kr...@gmx.de> on 2005/08/25 00:19:32 UTC

Problem with mkdir

Hello,

i get the following error:

Creation was not successful for an unknown reason.

The ANT task get this error after execute the following lines:

<delete dir="${log.dir}"/>
<mkdir dir="${log.dir}"/>

Need ANT a waiting time between this 2 commands ? Is that possible ?

When the log.dir doesnt exist it works fine.

Greets Oliver

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


RE: Problem with mkdir

Posted by S I <xi...@hotmail.com>.
Insert two echo tasks/stmts just to see the value of ${log.dir} just to rule 
out any other factor.  I believe, what's happening is that ANT is talking 
too fast to the operating system and confusing it and basically 'delete and 
mkdir' are almost overlapping.  Separate them out by couple of echo or sleep 
stmt and see if that works and if doesn't, create 2 separate targets for 
them and call them successively from a 3rd target.

Steven

----Original Message Follows----
From: "KrustyDerClown" <Kr...@gmx.de>
Reply-To: "KrustyDerClown" <Kr...@gmx.de>
To: <us...@ant.apache.org>
Subject: Problem with mkdir
Date: Thu, 25 Aug 2005 00:19:32 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc4-f27.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Wed, 24 Aug 2005 15:17:50 -0700
Received: (qmail 94763 invoked by uid 500); 24 Aug 2005 22:17:43 -0000
Received: (qmail 94742 invoked by uid 99); 24 Aug 2005 22:17:43 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)    by 
apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2005 15:17:43 -0700
Received: pass (asf.osuosl.org: domain of KrustyDerClown@gmx.de designates 
213.165.64.20 as permitted sender)
Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20)    by 
apache.org (qpsmtpd/0.29) with SMTP; Wed, 24 Aug 2005 15:17:59 -0700
Received: (qmail invoked by alias); 24 Aug 2005 22:17:39 -0000
Received: from p54A8C1DE.dip.t-dialin.net (HELO krustyderclown) 
[84.168.193.222]  by mail.gmx.net (mp027) with SMTP; 25 Aug 2005 00:17:39 
+0200
X-Message-Info: JGTYoYF78jEBfPCNDw7Z22LyEKF+dPyev3EsIeZ01dw=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
X-Authenticated: #2411409
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Y-GMX-Trusted: 0
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-51990-xiamak=hotmail.com@ant.apache.org
X-OriginalArrivalTime: 24 Aug 2005 22:17:50.0832 (UTC) 
FILETIME=[AA5AAF00:01C5A8F9]

Hello,

i get the following error:

Creation was not successful for an unknown reason.

The ANT task get this error after execute the following lines:

<delete dir="${log.dir}"/>
<mkdir dir="${log.dir}"/>

Need ANT a waiting time between this 2 commands ? Is that possible ?

When the log.dir doesnt exist it works fine.

Greets Oliver

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



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