I know this is the Ant mailing list and not the XDoclet mailing list, but I hope people can help me anyway.
I am writing an EJB application that will have about 10 EJBs, and I want to package them in separate jar files. I also want to generate most of the files through XDoclet. However, I cannot get XDoclet to create separate deploymentdescriptors for each EJB. If I use this as my <ejbdoclet> target, <target name="xdoclet" depends="xdoclet-init" description="Generate artifacts from EJBs"> <mkdir dir="${build.ejb.dir}"/> <mkdir dir="${build.ejb.dir}/META-INF"/> <property name="struts.base.class" value="org.apache.struts.action.ActionForm"/> <ejbdoclet destdir="${build.src.dir}" excludedtags="@version,@author" ejbspec="2.0"> <packageSubstitution packages="ejb" substituteWith="interfaces"/> <fileset dir="${build.src.dir}"> <include name="**/*Bean.java" /> </fileset> <fileset dir="${src.dir}" includes="**/*Bean.java"/> <dataobject/> <valueobject/> <localinterface/> <utilobject cacheHomes="true"/> <localhomeinterface/> <entitypk/> <entitycmp/> <homeinterface/> <remoteinterface/> <entitypk/> <strutsform> <packageSubstitution packages="ejb" substituteWith="struts"/> </strutsform> <weblogic destdir="${build.ejb.dir}/META-INF" /> <deploymentdescriptor destdir="${build.ejb.dir}/META-INF" validatexml="true" destinationFile="{0}-ejb-jar.xml" /> </ejbdoclet> </target> I end up with files like Person-ejb-jar.xml, Company-ejb-jar.xml, etc., but with identical contents. Then, <ejbjar> produces identical EJB JAR files, each with all the EJB class files therein. Furthermore, I have no idea how to produce separate WebLogic descriptors for each EJB. Has anyone successfully done this? I'm using Ant 1.5.1, XDoclet 1.2.0-beta1, and WebLogic 6.1. All my Bean files are in the same package: com.praxiseng.myproject.ejb, by the way. Respectfully, Eric Jablow Praxis Engineering Technologies, Inc. 301-490-4299 x. 131. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>