[email protected] wrote:
I'm giving Ant 1.8.0 a try on a new project. I'd like to ask if there
have been any changes for loading property files (break the build if
they're not found)
should not.
But using <property file/> the specified property file doesnt have to
exist - since a long time...
and if ant can report on the properties missing.
Are there any related ant-contrib tasks?
<fail> with <isset> condition.
<macrodef name="requireFile">
<attribute name="file"/>
<sequential>
<fail message="@{file} does not exist.">
<condition>
<not><available file="@{file}"/></not>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="requireProperty">
<attribute name="property"/>
<sequential>
<fail message="@{property} does not exist.">
<condition>
<not><isset property="@{property}"/></not>
</condition>
</fail>
</sequential>
</macrodef>
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Seems to work pretty well :) Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]