Being in the directories you are looking at in IE may
be one of the problems, you cannot move or delete
files (or directories) that are in use on windows, so
make sure anything that may be accessing your files is
closed before you try to run your real-clean.  To
delete everything except ${classes.dir} try this:

<delete>
  <fileset dir="${classes.dir}"
excludes="$classes.dir}/>
  </fileset>
</delete>


-----Original Message-----
Hi all,
I have the following target in my build script:
<target name="real-clean">
        <delete dir="${classes.dir}" />
        <delete dir="${lib.dir}" />
        <delete dir="${javadocs.dir}" />
        <mkdir dir="${classes.dir}" />
        <mkdir dir="${lib.dir}" />
        <mkdir dir="${javadocs.dir}" />
</target>

But once in a while it is not successful in creating
all 3 directories. Sometimes it works --- sometimes it
doesn't. Can somebody help me with this unpredictable
problem? This error also occurs when I am in the
lib.dir or classes.dir from Windows Explorer and the
ant script  tries to delete them and create them  ----
could that be the problem? 

My second question is how can I delete everything
underneath classes.dir with removing the classes.dir?




__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

Reply via email to