You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Giovanni Mesturini <jo...@yahoo.it> on 2006/03/03 12:46:22 UTC
RE: Delete a dir set - SOLVED
It works great!
Thank you very much
Jo
--- "Rebhan, Gilbert" <Gi...@huk-coburg.de>
ha scritto:
>
> Hi,
>
> following snippet works here with ant 1.6.5 on
> Win2k, jdk 1.4.2_08
>
> <delete includeemptydirs="yes">
> <fileset dir="T:\test\Foobar"
> defaultexcludes="no">
> <include name ="**/CVS/**"/>
> </fileset>
> </delete>
>
> recursive deleting all CVS folders under /Foobar
>
> works only with defaultexcludes="no"
>
> Regards, Gilbert
>
>
>
> -----Original Message-----
> From: Giovanni Mesturini [mailto:jo_4_ant@yahoo.it]
> Sent: Friday, March 03, 2006 11:50 AM
> To: Ant Users List
> Subject: RE: Delete a dir set
>
> Unfortunally the defaultexcludes are deprecated in
> 1.6.5. Ant manual suggests using <fileset> instead
> of
> defaultexludes, and this is the first try I made:
>
> > <delete>
> > <fileset dir="${cvs-module}" includes="**/CVS"/>
> > </delete>
>
> playing with includes doesn't override the default
> exclusions. trying on, if I will solve it I will
> share
> solution with community.
>
> thanks very much
> Jo
>
> --- bill/wilandra <bi...@wilandra.com> ha scritto:
>
> > From the Ant Manual <fileset> section:
> >
> > "There are a set of definitions that are excluded
> by
> > default from all
> > directory-based tasks. They are:
> >
> > **/*~
> > **/#*#
> > **/.#*
> > **/%*%
> > **/._*
> > **/CVS
> > **/CVS/**
> > **/.cvsignore
> > **/SCCS
> > **/SCCS/**
> > **/vssver.scc
> > **/.svn
> > **/.svn/**
> > **/.DS_Store
> >
> > If you do not want these default excludes applied,
> > you may disable them with
> > the defaultexcludes="no" attribute.
> >
> > This is the default list, note that you can modify
> > the list of default
> > excludes by using the defaultexcludes task."
> >
> > Try that and see if it works better for you.
> >
> > HTH Bill
> >
> > -----Original Message-----
> > From: Giovanni Mesturini
> [mailto:jo_4_ant@yahoo.it]
> > Sent: Thursday, March 02, 2006 8:10 AM
> > To: user@ant.apache.org
> > Subject: Delete a dir set
> >
> > Hi Community,
> >
> > I have to remove all CVS references from a tree.
> > I've tried this:
> >
> > <delete>
> > <fileset dir="${cvs-module}" includes="**/CVS"/>
> > </delete>
> >
> > in order to delete all CVS directories from my
> local
> > module, but it doesn't
> > work.
> >
> > How can I delete all CVS dirs spread inside my
> > dir-tree?
> >
> > thanks very much
> > Jo
> >
> >
> >
> >
> >
> >
> > ___________________________________
> > Yahoo! Mail: gratis 1GB per i messaggi e allegati
> da
> > 10MB
> > http://mail.yahoo.it
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org For additional
> > commands, e-mail: user-help@ant.apache.org
> >
> >
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
> >
>
>
>
>
>
>
>
> ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da
> 10MB
> http://mail.yahoo.it
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org