ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Help: Cant delete directory
Date Thu, 08 Jul 2004 09:58:26 GMT
<project default="init">
    <target name="init">
        <mkdir dir="${test}/aa"/>  <!-- the first isnt needed -->
        <delete dir="${test}/aa"/>
    </target>
</project>

works for me with Ant 1.5.2.

Maybe you expect the wrong thing: you only delete ${test}/aa, not ${test}
itself.


Jan


> -----Urspr√ľngliche Nachricht-----
> Von: Michael Svoboda [mailto:michael.svoboda@xcentric.ch]
> Gesendet am: Donnerstag, 8. Juli 2004 11:53
> An: user@ant.apache.org
> Betreff: Help: Cant delete directory
> 
> 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
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message