ARGH!  I will have to smack myself around for missing that :)

However, what it winds up doing is deleting all the files in the CVS directory, but not the directory itself. I can't seem to get it to do that.

I tried adding a second task in that target:

<delete dir="**/CVS/*"/>

But that didn't work. I also tried using a dirset instead of a fileset, but delete apparanetly doesn't support nested dirsets.

I delete directories in build scripts all the time, but it's always specific single directories, I've never tried to delete a series of directories from a tree using wildcards, so I'm a bit stumped. First I'm stumped at why the original script didn't delete the directory as well, and second why that additional delete task didn't do it either (it'd be better if I didn't need the second delete obviously).

Frank

Juergen Hermann wrote:
On Sat, 30 Jul 2005 00:26:20 -0400, Frank W. Zammetti wrote:

It's easier to do <fileset defaultexcludes="no">. The rest is a matter of case (look really hard ;).


Hmm, I certainly understand what you wrote (didn't know about that before, but makes perfect sense), but it doesn't seem to have helped. My complete script is now:


<project name="None" default="removecvs" basedir="." >
 <target name="removecvs">
   <defaultexcludes remove="**/CVS"/>
   <defaultexcludes remove="**/CVS/**"/>
   <delete includeemptydirs="true">
     <fileset dir="." includes="**/cvs/*"/>
   </delete>
 </target>
</project>


Any ideas?  Thanks Jeff!


Jeffrey E Care wrote:

You need to use the <defaultexcludes> task (http://ant.apache.org/manual/CoreTasks/defaultexcludes.html) to remove the CVS patterns:

   <defaultexcludes remove="**/CVS"/>
   <defaultexcludes remove="**/CVS/**"/>


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ciao, Jürgen







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to