Here's another way using Ant resources and unpackagemapperthat is designed for this purpose. The opposite is also available package mapper.
<property name="class.name" value="foo.bar.Duck"/>
<resources id="file.name">
<mappedresources>
<string value="${class.name}" />
<unpackagemapper from="*" to="*.class" />
</mappedresources>
</resources>
You use the resource value using the property helper syntax ${toString:...}, for example:
<echo message="File: ${toString:file.name}" />
Productivity
[echo] File: foo/bar/Duck.class
source
share