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:[EMAIL PROTECTED]]
> Date: mardi 17 septembre 2002 00:54
> �: '[EMAIL PROTECTED]'
> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to