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 <[EMAIL PROTECTED]> 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
> 


=====
([EMAIL PROTECTED])



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

Reply via email to