ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: Help: Cant delete directory
Date Thu, 08 Jul 2004 10:00:33 GMT
Michael, 

there are some issues with <delete> task in Windows.
If the directory/file to delete are used by another
program, like the dir is opened in Windows Explorer,
is not deleted.

But he-he, this is not the case with you. I just
noticed that you have used wrong brackets:
<delete dir="$(test)/aa" ...
must be
<delete dir="${test}/aa" ...

:)) Isn't it funny
Ivan
--- Michael Svoboda <michael.svoboda@xcentric.ch>
wrote:
> Hi there,
> 
> I'm trying out Ant but I got a stupid problem. I can
> make a directory but I
> cant delete it anymore. Please have a look on my Ant
> file:
> 
> ---------------------
> <project name="buildEnvironment" default="Start">
> 	<property name="test" value="test"/>
> 	<target name="Start">
> 		<mkdir dir="${test}"/>
> 		<mkdir dir="${test}/aa"/>
> 		<delete dir="$(test)/aa" verbose="true"/>
> 	</target>
> </project>
> ---------------
> 
> the output shows that the directory is created but
> not deleted.
> 
> --------------
> Buildfile: C:\development\eclipse\workspace\JAXFront
> Casabac
> Environment\buildEnvironment.xml
> Start:
>        [mkdir] Created dir:
> C:\development\eclipse\workspace\JAXFront
> Casabac Environment\test
>        [mkdir] Created dir:
> C:\development\eclipse\workspace\JAXFront
> Casabac Environment\test\aa
> BUILD SUCCESSFUL
> Total time: 235 milliseconds
> ----------------
> 
> Am I missing something? I use Ant 1.5.2 integrated
> in Eclipse 2.1 on Windows
> XP...
> 
> thanks for your help
> Michael
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message