ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Detlef Brendle" <detlef.bren...@canoo.com>
Subject howto use conditions
Date Fri, 07 Sep 2001 09:21:52 GMT
hi I wanna execute unzip if and only if the zip file exists.

my target looks like
<project>
...
<available file="${ConfigDir}A/${ConfigName}-srsc.zip"
property="DeltaAExists"/>
...
<target name="UnzipBaseLine" if="BaseLineExists">
	<unzip src="${ConfigDir}/${ConfigName}-src.${FileExtension}"
dest="${DestinationDir}" />
</target>
...
</project>

it doesnt work - Ant says unexpected <available token.

do I have to make a new target.?

detlef


Mime
View raw message