Please read the AntRun plugin usage guide first.

Here's an example configuration - you'll get the general idea.


          <ejbdoclet destdir="${}">
            <fileset dir="${}" includes="**/*"/>
            <entitycmp destDir="${}"/>


As you can see, I've also specified destDir attributes on the subtasks (like entitycmp). This is because of a bug in XDoclet, when XDoclet is used more than once (for instance, in a reactor build).

The goal to be called is xdoclet:xdoclet.