ant-user mailing list archives

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


Mime
View raw message