ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tran.hu...@fr.thalesgroup.com
Subject RE: Print message if property unset (or if file doesn't exist)?
Date Tue, 17 Sep 2002 06:34:18 GMT
you can use a condition like this one :

<condition property="buildPropertiesMissing">
   <not>
      <available file="build.properties" filepath="."/>
   </not>
</condition>

and have a target run if the property is set.
the target will echo the message you want.

regards,
tran

> -----Message d'origine-----
> De: Karr, David [mailto:david.karr@attws.com]
> Date: mardi 17 septembre 2002 00:54
> À: 'ant-user@jakarta.apache.org'
> Objet: Print message if property unset (or if file doesn't exist)?
> 
> 
> I just want to print a message if a "build.properties" file 
> does not exist
> in a directory.  I would think this would be an easy thing to 
> do, but I
> don't see a way to do it.  I figured out how to set a 
> property if a file is
> present, but I don't see how to do anything with that.
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

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


Mime
View raw message