ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Hays, Computer Geek" <>
Subject RE: ant not deleting directories
Date Wed, 08 May 2002 11:40:10 GMT
You might try setting the attribute includeEmptyDirs to true on the delete

Have fun! - Bob

Bob Hays                           "Discipline is never an end in
135 S. LaSalle                      itself, only a means to an end."
MS 3010                            -- King Crimson
Chicago, IL  60602                 "Whoever flees history will be
(312) 904-4668 (V)                  pursued by history."
(312) 904-0322 (F)                 -- Janusz Korczak           "Faster! Faster! Until the thrill              of speed overcomes the fear of
"Nothing great was ever achieved   -- Hunter S. Thompson
 without enthusiasm."              "Security is very frequently the
-- Ralph Waldo Emerson              commencement of calamity."
"A common mistake that people       -- Paterculus
 make when trying to design        "Problems cannot be solved at the
 something foolproof is to          same level of awareness that
 underestimate the ingenuity        created them."
 of complete fools."               -- Albert Einstein
-- Douglas Adams                   "People will work for money, but
                                    they'll give a piece of their
                                    lives for meaning."
                                   -- Schwab's Dawn Lapore
                                   "Creativity is allowing oneself to
                                    make mistakes. Art is knowing which
                                    ones to keep."
                                   -- Scott Adams
                                   "The surest way to corrupt a youth
                                    is to instruct him to hold in higher
                                    regard those who think alike than
                                    those who think differently."
                                   -- Nietzche
Version: 3.1
GCS d+(-)@ s+:+ a C++(+++)$ U$ P+$ L@ E+++$ W+++$ N++ !o-- K--? w$ !O
M$ V@ PS+ PE !Y+ PGP t !5-- !X !R tv+ b++() DI+ !D- G-- e++ h--- r+++

> -----Original Message-----
> From: Nilesh Parmar []
> Sent: Wednesday, May 08, 2002 2:22 AM
> To: antmailinglist
> Subject: ant not deleting directories
> Hi,
>  I'm writing an ant script to compile a set of Java classes and
> package them
> jars, wars, and ears. When i try to delete a directory and create
> it again,
> it doesn't seem to do it. I get no errors. It just compiles the java
> programs and places them into the destination, it doesn't go any further:
> Any ideas??
> This works:
>  <target name="compile">
>     <javac destdir="${}/classes"
> classpath="${myEnv.CLASSPATH}"
> debug="on">
>        <src path="${}/src"/>
>     </javac>
>   </target>
> The following doesn't work, and i don't get any errors :(
> <target name="ejb-counter" depends="compile">
>      <delete dir="${}/builds/META-INF"/>
>      <mkdir dir="${}/builds/META-INF"/>
> .....
> ...
> </target>
> --------------------------------------------------------------
> Peer Information India Pvt Ltd, Mumbai, India
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

View raw message