 <p>There are several ways to achieve that, see <a href="http://ant.apache.org/faq.html#propertyvalue-as-name-for-property" rel="nofollow">Ant FAQ</a><br> One possible solution via macrodef simulates the antcontrib / propertycopy task but doesn't need any external library.</p>