ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Fuller <jim.ful...@ruminate.co.uk>
Subject Re: <Fail> question
Date Tue, 15 Mar 2005 10:42:34 GMT
rakesh mailgroups wrote:

>Hi,
>
>I would like my build file to abort if a file does not exist.
>
>I couldn't find a way to find out if the file exists, but I did see a
>way to check for the existence of properties (since the file is a
>property file), I did this:
>
><target name="checkProperties">
>        <echo>Value of password is ${sun.password}</echo>
>	<fail unless="${sun.password}"/>
></target>
>
>  
>
try using the <available/> task to set a property or use <available/> 
condition

gl, Jim Fuller


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message