On Fri, 2003-02-14 at 21:33, Guy Daniel wrote:
> Yes, it has been my experience that you can only substitute the 
> terminating package,

/s/package/packages
I regularly use it to substitute e.g. "com.foo.bar.service.impl" with
"com.foo.bar.persistence" for the DAO interfaces.

You can also do things like
com.foo.beans.bean1 -> com.foo.intf.bean1, com.foo.beans.bean2 ->
com.foo.intf.bean2
by having multiple substitutions (packages="beans.beanX"
substituteWith="intf.beanX").  Not as elegant as if it could substitute
within the string, and unwieldy once you have a large number of beans,
but it works.

Alternatively, you could always change the code yourself to use
java.util.regex.Matcher's replace methods to give it full-blown regular
expression parsing and substitution.  It would restrict you to JDK 1.4,
though (which I believe is the main reason it's not using it already).


Andrew.



-------------------------------------------------------
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

Reply via email to