On Wed, 2003-07-09 at 11:23, Kraft, Thomas (FF) wrote: > > I'm trying to do my first steps with XDoclet and it works (almost) fine. > > But I have a little tricky problem which i can't solve: > > I generate a java-file (lt's call it target.java) from a file called > > source.java using XDoclet. > > My source.java is in the following package: > > > > package com.foo.bar.server.test; > > [...] > > > > When I write this inside my foobar.xdt: > > > > [...] > > <XDtPackage:packageName/> > > [...] > > > > then XDoclet replaces this expression with > > > > [...] > > com.foo.bar.server.test > > [...] > > > > Thats correct, but I want it in another package. I want to replace > > "server" with "client" inside this package name, so that XDoclet writes > > this: > > > > [...] > > com.foo.bar.client.test > > [...] > > > > and thats exactly my problem. I cant manage this. I tried a lot of things, > > but none worked. I tried to google for examples, but i don't found some. > > The only thing that I found was "packageSubstitution" insinde the XDoclet > > API. I tried to use > > > > <packageSubstitution packages="server" substituteWith="client"/>
Use <packageSubstitution packages="server.test" substituteWith="client.test"/> instead. If you've got other packages that need it as well as 'test', you'll have to include a packageSubstitution for each of them. It's a pain, but it's the only way it works at the moment. Andrew. ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
