ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Monsees" <l.mons...@atlantisgmbh.de>
Subject RE: Deleting file does not work?
Date Thu, 19 Oct 2006 14:19:05 GMT
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:l.monsees@atlantisgmbh.de]
> 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: 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


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


Mime
View raw message