On Thu, 2003-08-21 at 20:52, Mark Lybarger wrote: > I'm currently using the deploymenetdescriptor task as below. This creates a > file called TestBean-ejb-jar.xml for a bean implementation named > TestBean.java. The destinationFile element doesn't appear on the > documentation on the xdoclet site. Regardless, it works very nicely for my > needs. > > http://xdoclet.sourceforge.net/ant/xdoclet/modules/ejb/dd/EjbDotXmlSubTask.h > tml > > > <deploymentdescriptor destinationFile="{0}-ejb-jar.xml" > destDir="${basedir.webapp.web-inf.src}"/> > > I'd like to be able to do something similar using the weblogic task, but the > destinationFile doesn't seem to work. This statement creates a > weblogic-ejb-jar.xml file that isn't prefixed by the bean name. > > <weblogic destinationFile="{0}-ejb-jar.xml" > destDir="${basedir.webapp.web-inf.src}/"/> > > How can i get the weblogic task to behave like the deploymentdescriptor > task?
It's possible you can't. I'd have to go look at that specific subtask's source to be absolutely certain, but most of the modules which generate more than one output file (e.g. a DD and a CMP settings file) do it by setting the template & destination file to each of the relevant values in turn within the execute method. In the process, they overwrite any value you may have tried to set with a parameter in your build file :-( Any subtasks which only generate one file tend to set the default value in the constructor and only read it in execute(), which means it can be modified in the meantime by a build file parameter. One of these days, someone ought to go through and rewrite all those subtasks to work differently, so every destination & template can be overridden separately. Feel free to raise an enhancement request for it... Andrew. ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
