ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: How to make expandproperties fail if one of the properties cannot be found
Date Thu, 07 Dec 2006 10:10:17 GMT
I dont know a "clean" way, but maybe this is enough for you


    <copy file="x.template" tofile="" overwrite="true">

    <!-- Check for unset properties in the file -->
    <loadfile property="prop" srcfile=""/>
        There are unset properties
        <condition><contains string="${prop}" substring="$${"/></condition>



>-----Urspr√ľngliche Nachricht-----
>Von: Vladimir Kravchenko [] 
>Gesendet: Donnerstag, 7. Dezember 2006 09:48
>Betreff: How to make expandproperties fail if one of the 
>properties cannot be found
>I am using expandproperties within the copy task.
>I would like my build fails when at least one of the 
>properties cannot be expanded.
>Otherwise it can lead to runtime errors ...
>Is there any way to make expandproperties stricter?
>Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message