ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Roberts" <ericr...@tacc.utexas.edu>
Subject RE: problem using <fail/> task
Date Tue, 03 Aug 2004 17:07:52 GMT
That did it...thanks!

--Eric

-----Original Message-----
From: Peter Reilly [mailto:peterreilly@apache.org] 
Sent: Tuesday, August 03, 2004 12:05 PM
To: Ant Users List
Subject: Re: problem using <fail/> task

You need to do <fail if="portlet-exist" message=" .. "/>

i.e. the name of the property and not the value of the property.

Peter
Eric Roberts wrote:

>Hi 
>
> 
>
>I am having trouble getting the <fail/> task to work correctly for me.
>I have the follow block of code:
>
> 
>
> 
>
><target>
>
>    ...
>
><condition property="portlet-exists">
>
>            <available file="${portlet.dir}/${app.name}/build.xml"/>
>
></condition>
>
> 
>
><fail if="${portlet-exists}" message="The portlet already exists"/>
>
>    ...
>
></target>
>
> 
>
> 
>
>This code never fails even if the file specified above exists.  I have
>tried using the "unless" attribute of <fail/> but that ALWAYS fails.
Am
>I misunderstanding something?
>
> 
>
>Any help would be greatly appreciated.
>
> 
>
>--Eric
>
> 
>
> 
>
> 
>
>
>  
>


---------------------------------------------------------------------
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