I’ve set-up a repository on Google Code where you can download the code that generates the custom Ant task. Yes, I know it’s fashionable to create repositories on GitHub but I mostly use Subversion and Mercurial so there!
Alternatively you can check out the project directly by issuing the following command:
hg clone https://yui-compressor-ant-task.googlecode.com/hg/ yui-compressor-ant-task
Technically, it is possible to get the desired behaviour using Ant’s
apply would start to get ugly and (possibly) cumbersome. My Ant task is a bit neater. Well, I think so anyway.