ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: howto use conditions
Date Fri, 07 Sep 2001 14:34:18 GMT
The <available> task can't be used at the project level (I think it should
be, but that suggestion got turned down). You'll need to put your
<available> in a target, which your UnzipBaseLine target then depends on.

Diane

--- Detlef Brendle <detlef.brendle@canoo.com> wrote:
> 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
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Mime
View raw message