User: ko5tik  
  Date: 02/05/20 10:13:16

  Modified:    core/src/xdoclet Tag: MODULE_REFACTORING_BRANCH
                        DocletTask.java
  Log:
  fixed tag handler loading. use second instance for template parser or
  template parser will be set instead of template engine
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.39.2.17 +6 -2      xdoclet/core/src/xdoclet/DocletTask.java
  
  Index: DocletTask.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/DocletTask.java,v
  retrieving revision 1.39.2.16
  retrieving revision 1.39.2.17
  diff -u -w -r1.39.2.16 -r1.39.2.17
  --- DocletTask.java   19 May 2002 14:15:23 -0000      1.39.2.16
  +++ DocletTask.java   20 May 2002 17:13:15 -0000      1.39.2.17
  @@ -99,12 +99,16 @@
   
                   try {
                       TemplateTagHandler handler = (TemplateTagHandler) 
Class.forName(thd.className).newInstance();
  +                    // get ANOTHER instance for template parser. So it would not 
overwrite
  +                    // template engine settings.
  +
  +                    TemplateTagHandler handlerForParser = (TemplateTagHandler) 
Class.forName(thd.className).newInstance();
   
                       log.debug("Add tagHandler " + thd.namespace + " (" + 
thd.className + ')');
                       
TemplateEngine.getEngineInstance().setTagHandlerFor(thd.namespace, handler);
  -                    // add it also to template praser, or it will barf
  +                    // add it also to template parser, or it will barf
                       // while ettempting to parse files...
  -                    
TemplateParser.getParserInstance().setTagHandlerFor(thd.namespace, handler);
  +                    
TemplateParser.getParserInstance().setTagHandlerFor(thd.namespace, handlerForParser);
   
                   }
                   catch (TemplateException e) {
  
  
  

_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to