User: ara_e_w
Date: 02/02/28 12:22:48
Modified: core/src/xdoclet XDocletTagSupport.java
Log:
sad but true: other than the @namespace:tag we have to support @namespace.tag
notation too because of JDK1.4's strictness with unknown @tags
I made all neccessary changes (mini changes alctually, and changed CustomerBMPBean
for test).
PLEASE DON'T USE Doc.tags() methods directly, use DocletUtil.getTagsByName.
Revision Changes Path
1.22 +5 -2 xdoclet/core/src/xdoclet/XDocletTagSupport.java
Index: XDocletTagSupport.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/XDocletTagSupport.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -r1.21 -r1.22
--- XDocletTagSupport.java 7 Feb 2002 19:11:21 -0000 1.21
+++ XDocletTagSupport.java 28 Feb 2002 20:22:48 -0000 1.22
@@ -27,7 +27,7 @@
*
* @author Dmitri Colebatch ([EMAIL PROTECTED])
* @created October 12, 2001
- * @version $Revision: 1.21 $
+ * @version $Revision: 1.22 $
*/
public abstract class XDocletTagSupport extends TemplateTagHandler
{
@@ -289,7 +289,10 @@
// First use currentTag, then if null or not the tag we're searching
for
// continue searching
- if( getCurrentTag() != null && getCurrentTag().name().equals( "@" +
tag_name ) )
+ String complete_tag_name = "@" + tag_name;
+ String complete_dotted_format_tag_name = complete_tag_name.replace(
':', '.' );
+
+ if( getCurrentTag() != null && ( getCurrentTag().name().equals(
complete_tag_name ) || getCurrentTag().name().equals( complete_dotted_format_tag_name
) ) )
the_tag = getCurrentTag();
else
{
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel