Feature Requests item #486505, was opened at 2001-11-28 08:15
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402707&aid=486505&group_id=31602

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Andrew Stevens (stevensa)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improve <packageSubstitution/> element

Initial Comment:
In its current form, the packageSubstition nested 
element for the ejbdoclet task isn't quite flexible 
enough for how I've got my packages arranged.  It's 
fine if the packages are one the same level e.g. 
com.foobar.somebean.ejb -> 
com.foobar.somebean.interfaces, but if you want the 
interfaces stored at a different level it's cumbersome.

We'd use com.foobar.somebean.impl -> 
com.foobar.somebean, but if I use <packageSubstitution 
packages="impl" substituteWith=""/> then choosePackage
() will leave a trailing '.' on the end.  Similarly, 
someone else on the xdoclet-user was saying recently 
they'd use com.foobar.somebean -> 
com.foobar.somebean.interfaces, but if they tried 
<packageSubstitution packages="" 
substituteWith="interfaces"/> it would end up looking 
for packageName.endsWith("."), which I doubt would 
find many matches...

It can be worked around with multiple entries like
<packageSubstitution packages="bean1.impl" 
substituteWith="bean1"/>
<packageSubstitution packages="bean2.impl" 
substituteWith="bean2"/>
...
but that takes more maintenance and becomes unwieldy 
as the number of packages grows.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402707&aid=486505&group_id=31602

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to