On Thu, 2004-03-04 at 18:05, Mark Lybarger wrote:
> and aside, our package structure is:  
> 
> com.mycompany.ejb.customer.CustomerBean
> com.mycompany.ejb.order.OrderBean
> 
> i'de like to use xdoclet's built in package substitution to be able to create:
> 
> com.mycompany.delegate.customer.CustomerDelegate
> com.mycompany.delegate.order.OrderDelegate
> 
> can the built in package substitution handle changing a package name
> in the middle of the chain like this?

You could certainly use

<packageSubstitution packages="ejb.customer"
substituteWith="delegate.customer"/>
<packageSubstitution packages="ejb.order"
substituteWith="delegate.order"/>

(multiple packageSubstitution elements are supported).  If you've got a
lot of packages, however, this isn't a very neat solution.  A better one
is to modify packageSubstitution to allow wildcard/regexp substitutions;
I believe there's a patch attached to one of the issues in JIRA.  You'll
have to build XDoclet yourself from source to use that, though.


Andrew.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to