On Thu, 2004-02-12 at 18:44, Mark Lowe wrote:
> Thankyou very much, i was just reaching for the razor blades..
>
> Nice answer.. also thanks to andrea for his answer. I think i'll
> upgrade another day. The package hierarchy workaround will do just fine
> for now.
It's not a workaround, it's the proper way to do it :-)
Suppose you have classes com.foo.bar1.MyClass and com.foo.bar2.MyClass,
If the merge files always got put directly in the mergedir, then your
hibernate-properties-MyClass.xml file would get used for both of them
and there'd be no way to specify different properties for each. So, to
avoid the clash, you have to follow the same package hierarchy.
I suppose we could have come up with a naming scheme that used something
like com_foo_bar1_hibernate-properties-MyClass.xml, but the current
behaviour seems neater. This way, you could if you wish use your src
directory as the mergedir as well, and have each merge file in the same
directory as its corresponding java source file.
Andrew.
>
> Cheers again mark
>
>
> On 12 Feb 2004, at 18:31, Aleksandr Shneyderman wrote:
>
> > Make sure that you put your files in the correct subdirs.
> >
> > IE: suppose you have
> > mergeDir="${basedir}/resources/mergeDir/" in the doclet tag.
> >
> > You also have a class
> >
> > com.foo.Bar as ${basedir}/src/com/foo/Bar.java
> >
> > You have to put your merge files in
> >
> > ${basedir}/resources/mergeDir/com/foo/hibernate-properties-Bar.xml
> >
> >
> > That is about it.
> >
> > Alex.
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Mark
> > Lowe
> > Sent: Thursday, February 12, 2004 12:01 PM
> > To: XDoclet Users List
> > Subject: [Xdoclet-user] hibernatedoclet merge dir
> >
> >
> > hello
> >
> > anyone know if there are any quirks with the mergedir attribute for
> > hibernatedoclet, it seems not to want to merge?
> >
> > cheers mark
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user