I'm trying to use the packageSubstitution feature to swap out packages in
the middle:

ie:
   com.foo.beans.client.[Class]  ->   com.foo.interfaces.client.[Class]
   com.foo.beans.admin.[Clazz] ->   com.foo.interfaces.admin.[Clazz]

I'm using this command:      [packageSubstitution packages="beans"
substituteWith="interfaces"/]

But the generated code still ends up as
com.foo.beans.[client|admin].[Class].

I took a peek in the CVS tree and saw this:

   if( packageName.endsWith( suffix ) )
    {
     packageName = packageName.substring( 0, packageName.length() -
suffix.length() ) + '.' + ps.getSubstituteWith();
     break;
    }

which leads me to believe you can only change the terminating package.  I've
even tried with tons of fun wild cards.  still no luck.

Am I correct in my belief?   I've tried to look for a change request similar
to this, but it's difficult without a search feature.   Is there a sound
reason why we should only be able to change the terminating package?


Thanks in advance for any information you can throw my way.


--adam


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to