n***@atlassian.com
2005-08-13 12:39:11 UTC
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1505
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1505
Summary: You cannot use the same doclet twice
Type: Bug
Status: Open
Priority: Critical
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
Core
Versions:
1.2.3
Assignee: xdoclet-devel (Use for new issues)
Reporter: Kenney Westerhof
Created: Sat, 13 Aug 2005 9:37 AM
Updated: Sat, 13 Aug 2005 9:37 AM
Description:
When you use the same doclet task twice (in a build.xml file,
or 'embedded'), SubTasks shared between the two definitions
will always be the same. I.e.:
<target>
<!-- will create sessoin beans in dir A. -->
<ejbdoclet destDir="A">
<session/>
</ejbdoclet>
<!-- will create session beans in dir A also! -->
<ejbdoclet destDir="B">
<session/>
</ejbdoclet>
<!-- will create session beans in dir C -->
<ejbdoclet destDir="C">
<session destDir="C"/>
</ejbdoclet>
SubTask.init() checks for null values (for destDir e.a.).
If they're null, it inherits them from the parent DocletTask.
If they're not null (the second time it gets called), they don't
get reconfigured.
Having a flag in SubTask doesn't solve this - the subtaskmap should
be reset, so all fields are properly reconfigured, or after execute
is finished, the fields should be set to null.
I know there are some related issues that are solved too by this.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1505
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1505
Summary: You cannot use the same doclet twice
Type: Bug
Status: Open
Priority: Critical
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
Core
Versions:
1.2.3
Assignee: xdoclet-devel (Use for new issues)
Reporter: Kenney Westerhof
Created: Sat, 13 Aug 2005 9:37 AM
Updated: Sat, 13 Aug 2005 9:37 AM
Description:
When you use the same doclet task twice (in a build.xml file,
or 'embedded'), SubTasks shared between the two definitions
will always be the same. I.e.:
<target>
<!-- will create sessoin beans in dir A. -->
<ejbdoclet destDir="A">
<session/>
</ejbdoclet>
<!-- will create session beans in dir A also! -->
<ejbdoclet destDir="B">
<session/>
</ejbdoclet>
<!-- will create session beans in dir C -->
<ejbdoclet destDir="C">
<session destDir="C"/>
</ejbdoclet>
SubTask.init() checks for null values (for destDir e.a.).
If they're null, it inherits them from the parent DocletTask.
If they're not null (the second time it gets called), they don't
get reconfigured.
Having a flag in SubTask doesn't solve this - the subtaskmap should
be reset, so all fields are properly reconfigured, or after execute
is finished, the fields should be set to null.
I know there are some related issues that are solved too by this.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira