ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Roberts" <>
Subject problem using <fail/> task
Date Tue, 03 Aug 2004 17:02:12 GMT


I am having trouble getting the <fail/> task to work correctly for me.
I have the follow block of code:





<condition property="portlet-exists">

            <available file="${portlet.dir}/${}/build.xml"/>



<fail if="${portlet-exists}" message="The portlet already exists"/>





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.






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