ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Roberts" <ericr...@tacc.utexas.edu>
Subject problem using <fail/> task
Date Tue, 03 Aug 2004 17:02:12 GMT
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

 

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message