How to generate EJB 2.x Remote/Local Home and Stubs class files?

With gradle how do I generate EJB 2.x Remote/Local Home and Interfaces classes(stubs and skeletons)? With ant we used to use ejbdoclet to do this generation. How do I do it with gradle?

Thanks, PB

You can use the same Ant task from Gradle.