ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: Help with a deletion...
Date Fri, 25 Jun 2004 21:24:30 GMT
With <include name=... you need to specify one file at a time. 
"includes" attribute accepts a list of patterns, but not <include> node.

- Alexey.

Sunil Mishra wrote:

> Hi,
>
> I'm trying to figure out what I might be doing wrong in executing the  
> following delete. The syntax, so far as I can tell, is correct, but 
> the  files are not getting deleted.
>
>     <delete>
>       <fileset dir="${parser.dir}">
>     <include  
> name="KIFLexer.java,KIFParser.java,KIFTokenTypes.java,KIFTokenTypes.txt" 
> />
>     <include  
> name="CNFConverter.java,CNFConverterTokenTypes.java,CNFConverterTokenTyp 
> es.txt"/>
>     <include  
> name="CodeGenerator.java,CodeGeneratorTokenTypes.java,CodeGeneratorToken 
> Types.txt"/>
>     <include  
> name="Simplifier.java,SimplifierTokenTypes.java,SimplifierTokenTypes.txt 
> "/>
>       </fileset>
>     </delete>
>
> I'm on a mac running ant 1.6.1. I've also tried on a pc with the same  
> result. I first check to make sure these files are present, invoke my  
> clean target, and check my directory again. The files are still there.
>
> Here's some debug output...
>
> $ ant -v -d clean
> Apache Ant version 1.6.1 compiled on February 12 2004
> Apache Ant version 1.6.1 compiled on February 12 2004
> Buildfile: build.xml
> Adding reference: ant.PropertyHelper
> Detected Java version: 1.4 in:  
> /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home
> Detected OS: Mac OS X
> Adding reference: ant.ComponentHelper
> Setting ro project property: ant.version -> Apache Ant version 1.6.1  
> compiled on February 12 2004
> Setting ro project property: ant.file ->  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/build.xml
> Adding reference: ant.projectHelper
> Adding reference: ant.parsing.context
> Adding reference: ant.targets
> parsing buildfile  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/build.xml with URI 
> =  file:///Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/build.xml
> Setting ro project property: ant.project.name -> jtp
> Adding reference: jtp
> Setting ro project property: ant.file.jtp ->  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/build.xml
> Project base dir set to:  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java
>  +Target:
> Adding reference: classpathref
>  +Target: init
>  +Target: copyLib
>  +Target: compileParser
>  +Target: compile
>  +Target: clean
>  +Target: all
> Setting project property: lib.dir ->  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/lib
> Setting project property: dest.dir ->  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/build/classes
> Setting project property: parser.dir ->  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/src/jtp/fol/kif
> Could not load a dependent class  
> (com/sun/media/jai/codec/FileSeekableStream) for type image
> Could not load a dependent class 
> (org/apache/commons/net/SocketClient)  for type rexec
> Adding reference: classpathref
> Build sequence for target `clean' is [clean]
> Complete build sequence is [clean, copyLib, init, compileParser,  
> compile, all, ]
>
> clean:
> Could not load a dependent class  
> (com/sun/media/jai/codec/FileSeekableStream) for type image
> Could not load a dependent class 
> (org/apache/commons/net/SocketClient)  for type rexec
> Could not load class 
> (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion)  for type cvsversion
> Could not load a dependent class (com/starbase/starteam/Item) for 
> type  stlist
> Could not load a dependent class 
> (org/apache/commons/net/SocketClient)  for type telnet
> Could not load a dependent class 
> (org/apache/commons/net/SocketClient)  for type ftp
> Could not load a dependent class (jdepend/xmlui/JDepend) for type  
> jdepend
> Could not load a dependent class (junit/framework/TestListener) for  
> type junit
> Could not load a dependent class (com/starbase/starteam/Item) for 
> type  stcheckin
> Could not load a dependent class (com/starbase/starteam/Item) for 
> type  stcheckout
> fileset: Setup scanner in dir  
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/src/jtp/fol/kif 
> with  patternSet{ includes:  
> [KIFLexer.java,KIFParser.java,KIFTokenTypes.java,KIFTokenTypes.txt,  
> CNFConverter.java,CNFConverterTokenTypes.java,CNFConverterTokenTypes.txt 
> ,  
> CodeGenerator.java,CodeGeneratorTokenTypes.java,CodeGeneratorTokenTypes. 
> txt,  
> Simplifier.java,SimplifierTokenTypes.java,SimplifierTokenTypes.txt]  
> excludes: [] }
>
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
>
>
> Thanks!
>
> Sunil
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message