How do I convert Java class names into file paths using Ant tasks?
For example, given a property containing foo.bar.Duck I’d like to get out foo/bar/Duck.class.
I tried (and failed) to implement this in terms of <pathconvert> and <regexpmapper>.
Here’s another way, using Ant resources and an
unpackagemapper, which is designed for this purpose. The oppositepackage mapperis also available.You use the resource value by means of the property helper syntax
${toString:...}, e.g.:Yields