I want to create an ant-buildscript, that includes some files as a sort of plugin.
So if I want to activate a feature in a project - say pmd-checking - I copy a pmd.xml in a directory and the build.xml get on the start the idea, that pmd.xml exists and imports it, so that new targets can be available to the build.
But the import-task can only be used as a toplevel-task, so I have no idea how to relize this functionality. Is this possible with ant and if yes, how can I do it?
EDIT: I would prefer a solution, that allows new targets to show up in the listing presented by 'ant -p'.