ok, thx for the quick answer.

Lars


> Hi,
> 
> works as designed, means when working with patterns like *.jar you
> have to use a fileset.
> 
> 
> Regards, Gilbert
> 
> -----Original Message-----
> From: Lars Monsees [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 19, 2006 4:06 PM
> To: Ant Users List
> Subject: Deleting file does not work?
> 
> Hello,
> 
> I have to copy a self-built lib from one project to another and
before
> that I want to delete all previous versions of that file that might
> exist (the version number is contained within the filename).
> 
> Therefore, I wanted to use this:
>       <!-- remove old versions first -->
>       <echo message="${external.libfolder}${jar.prefix}-*.jar"/>
>       <!-- outputs: ../app_client/lib/jaf-*.jar -->
> 
>       <delete file="${external.libfolder}${jar.prefix}-*.jar"
> verbose="true"/>
> 
> 
> The above does not delete the file, while this does the job:
>       <delete verbose="true">
>               <fileset
> file="${external.libfolder}${jar.prefix}-*.jar">
>               </fileset>
>       </delete>
> 
> 
> Is this supposed to be this way or what am I doing wrong?
> 
> 
> 
> Lars
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to