ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duffey, Kevin" <KDuf...@marketron.com>
Subject RE: Deleting all nested dirs/files except one?
Date Wed, 04 Jun 2003 18:05:36 GMT
Almost. It still deleted all files in the various directores, but at least it deleted the directores
this time. For some reason I keep getting this error message:

clean:
   [delete] DEPRECATED - Use of the implicit FileSet is deprecated.  Use a nested fileset
element instead.
   [delete] Deleted 28 directories from C:\test
   [delete] Deleting 1 files from C:\test


So what does it mean by saying its deprecated? I know what deprecated is, I just see no reason
why it is giving me this error when I am infact nesting a <fileset> inside of the <delete>.


-----Original Message-----
From: Jacob Kjome [mailto:hoju@visi.com] 
Sent: Wednesday, June 04, 2003 10:42 AM
To: Ant Users List
Subject: Re: Deleting all nested dirs/files except one?


Try this...

<exclude name="scripts/**/**"/>

Jake

At 10:04 AM 6/4/2003 -0700, you wrote:
>Hi,
>
>I am trying to get my script to do a clean build. The dir structure of our 
>project is like:
>
>/bin
>/dist
>/src
>/lib
>/doc
>/scripts
>
>
>I put our build scripts in the /scripts folder. So I want to delete ALL 
>folders except the /scripts folder. In fact, I want to delete the entire 
>base dir of the project, all sub folders, files, etc, except the /scripts 
>dir and the /doc dir. When this is done, I then grab the latest out of 
>CVS. How can I do this?
>
>I have tried:
>
><delete includeEmptyDirs="true" dir="${PROJECT_HOME}" defaultexcludes="false">
>         <fileset dir="${PROJECT_HOME}">
>                 <exclude name="scripts/**"/>
>                 <exclude name="doc/**"/>
>         </fileset>
></delete>
>
>This works in that it deletes ALL files. But it doesn't delete the dirs. I 
>am hoping to avoid having to specify every single dir one at a time in 
>individual delete tasks.
>
>Also, what is the name of the folder where ya'll keep your build scripts? 
>I named it /scripts, seemed appropriate enough. I have seen some name it 
>/build. What is the norm for this name?
>
>Thanks.
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003
>
>
>
>***********************************************************
>The information contained in this e-mail message may be
>confidential and  protected from disclosure. If you are
>not the intended recipient, any dissemination, distribution
>or copying is strictly prohibited. If you think that you
>have received this e-mail message in error,
>please e-mail the sender at exchangeadmins@marketron.com
>***********************************************************
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003
 


***********************************************************
The information contained in this e-mail message may be 
confidential and  protected from disclosure. If you are 
not the intended recipient, any dissemination, distribution
or copying is strictly prohibited. If you think that you 
have received this e-mail message in error,
please e-mail the sender at exchangeadmins@marketron.com
***********************************************************

Mime
View raw message