ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From schumacher <r...@august.de>
Subject fileset: exlude a dir not to be touched by ant?
Date Thu, 14 Nov 2002 11:21:15 GMT
I cannot exclude a directory from being touched.
The solution has to be simple, any advice?

I tried a simple task:
deleting all files with *.bak at the end.
No problem so far.
But in XP there is a directory called
C:\System Volume Information

I cannot exlude it from being touched.

I tried
<exclude name="C:\System Volume Information\*"/>
as well as
<exclude name="C:\System*"/>

but all leads to an ant error:

BUILD FAILED
file:C://build.xml:12: IO error scanning directory C:\System Volume 
Information
         at 
org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:6
41)
         at 
org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:7
02)
         at 
org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:571)

         at 
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(Abstra
ctFileSet.java:379)
         at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:334)
         at org.apache.tools.ant.Task.perform(Task.java:319)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
         at org.apache.tools.ant.Main.runBuild(Main.java:610)
         at org.apache.tools.ant.Main.start(Main.java:196)
         at org.apache.tools.ant.Main.main(Main.java:235)


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message