>> <ejbdoclet verbose="on" ejbspec="2.0" destDir="${basedir.webapp.web-inf.src}"> >> <fileset dir="${basedir.webapp.web-inf.src}"> >> <include name="**/Event*Bean.java"/> >> </fileset> >> <deploymentdescriptor destinationFile="{0}-ejb-jar.xml" destDir="${basedir.webapp.web-inf.src.gen}"/> >> <weblogic destinationFile="{0}-weblogic-ejb-jar.xml" destDir="${basedir.webapp.web-inf.src.gen}/"/> >> </ejbdoclet> >> this creates a <beanName>-ejb-jar.xml and a <beanName>-weblogic-ejb-jar.xml >> file for each bean that matches the pattern. the issue is that the >> generated deployment descriptors contain information related to all the >> beans. each file that is generated is exactly the same. >> how can i get each deployment descriptor to be "per bean". only contain the >> information that is in that specific *Bean.java file? a not very good hack >> that i'm using is to have separate tasks for each bean, and have the fileset >> include only each specific bean. this obviously isn't good when we're >> adding beans.
I'm using something similar to the snippet below. It's based on the assumption that each bean can be identified in a filterset by a unique substring of its class name. <target name="generate"> <antcall target="generate.sub"> <param name="ejb.name" value="Foo" /> </antcall> <antcall target="generate.sub"> <param name="ejb.name" value="Bar" /> </antcall> </target> <target name="generate.sub"> <ejbdoclet verbose="on" ejbspec="2.0" destDir="${basedir.webapp.web-inf.src}"> <fileset dir="${basedir.webapp.web-inf.src}"> <include name="**/Event*${ejb.name}Bean.java"/> </fileset> <deploymentdescriptor destinationFile="${ejb.name}-ejb-jar.xml" destDir="${basedir.webapp.web-inf.src.gen}"/> <weblogic destinationFile="${ejb.name}-weblogic-ejb-jar.xml" destDir="${basedir.webapp.web-inf.src.gen}/"/> </ejbdoclet> </target> Kind regards, /jens ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user