Thomas Dudziak wrote:
Yes it works well! Thank you for advise!On Mon, 24 May 2004, Maksimenko Alexander wrote:
When I use two ojb tags consecutivly
<ojbdoclet destdir="${dir.javalike}" checks="basic">
<fileset dir="../shared/src/java"/>
<ojbrepository destinationFile="file1.xml"/>
</ojbdoclet>
<ojbdoclet destdir="${dir.javalike}" checks="basic">
<fileset dir="src/java"/>
<ojbrepository destinationFile="file2.xml"/>
</ojbdoclet>
I get two files file1.xml and file2.xml
file1 is OK
but file2
contains all descriptors from file1 and the ":table" attribute of each class descriptor from file1 equals class name (without package) wich specified in "class" attribute.
I've heard of something similar with another XDoclet module (not for OJB),
so it may be a bug with XDoclet itself. Actually I'm rather sure that it
lies within XDoclet as quite a few parts within it are static which means
the information within static parts stay in memory unless the XDoclet classes are loaded anew.
Have you tried putting the two calls into separate targets (perhaps even
each with their own taskdef for the ojbdoclet task) ?
But you'll get a problem in this approach if the classes from src/java reference the classes from ../shared/src/java.
BTW it exists another solution - if you include following tasks in revert order - file2 and then file1 then all class descriptors which have wrong "class" attribute would reinitialized with correct class descriptor from file1.
Please tell us how that works out so that I can add something to the documentation of the XDoclet OJB module.
Tom
-- Maksimenko Alexander Softwarium, www.softwarium.net
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
