User: vharcq  
  Date: 02/05/22 13:08:06

  Modified:    core/src/xdoclet/template Tag: MODULE_REFACTORING_BRANCH
                        TemplateParser.java
  Log:
  Treat the case of Orion in Timestamp checking, this is a template file that merge 
itself.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.2.3  +21 -16    xdoclet/core/src/xdoclet/template/TemplateParser.java
  
  Index: TemplateParser.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/template/TemplateParser.java,v
  retrieving revision 1.10.2.2
  retrieving revision 1.10.2.3
  diff -u -w -r1.10.2.2 -r1.10.2.3
  --- TemplateParser.java       12 May 2002 11:58:04 -0000      1.10.2.2
  +++ TemplateParser.java       22 May 2002 20:08:06 -0000      1.10.2.3
  @@ -17,16 +17,14 @@
   import xdoclet.util.Translator;
   
   /**
  - * Subclass of Template Engine that do not generate anything but only parse the
  - * document. The TagHandlers have a callback entry to this method to set in it
  - * anything they want to. This class was introduced for parsing .j files and
  - * return a list of merge files needed for the generation. The timestamp
  - * checking can then verify all files involved in a generation and bypass the
  - * generation if -nothing has changed-.
  + * Subclass of Template Engine that do not generate anything but only parse the 
document. The TagHandlers have a
  + * callback entry to this method to set in it anything they want to. This class was 
introduced for parsing .j files and
  + * return a list of merge files needed for the generation. The timestamp checking 
can then verify all files involved in
  + * a generation and bypass the generation if -nothing has changed-.
    *
    * @author    Vincent Harcq ([EMAIL PROTECTED])
    * @created   December 27, 2001
  - * @version   $Revision: 1.10.2.2 $
  + * @version   $Revision: 1.10.2.3 $
    */
   public class TemplateParser extends TemplateEngine
   {
  @@ -34,8 +32,7 @@
       private List    mergeFiles;
   
       /**
  -     * Initialize the Template Engine. Reads the XDoclet properties file, and
  -     * loads any XTag handler classes specified.
  +     * Initialize the Template Engine. Reads the XDoclet properties file, and loads 
any XTag handler classes specified.
        */
       protected TemplateParser()
       {
  @@ -65,8 +62,7 @@
       }
   
       /**
  -     * A utility method used for generating the dest_file based on template_file
  -     * template file.
  +     * A utility method used for generating the dest_file based on template_file 
template file.
        *
        * @exception TemplateException  Description of Exception
        */
  @@ -91,9 +87,8 @@
       }
   
       /**
  -     * In this class, this method does not -generate- anything but only parse
  -     * the files. Callback to this class can be made by specific TagHandlers
  -     * during the process.
  +     * In this class, this method does not -generate- anything but only parse the 
files. Callback to this class can be
  +     * made by specific TagHandlers during the process.
        *
        * @param template               Description of Parameter
        * @exception TemplateException  Description of Exception
  @@ -120,14 +115,24 @@
       }
   
       /**
  -     * Callback by the MergeTagsHandler to give the parser the list of merge
  -     * files involved.
  +     * Callback by the MergeTagsHandler to give the parser the list of merge files 
involved.
        *
        * @param file  one merge file involved
        */
       public void addMergeFile(String file)
       {
           mergeFiles.add(file);
  +    }
  +
  +    /**
  +     * Callback by the MergeTagsHandler to know if a merge file has already been 
taken into account.
  +     *
  +     * @param file
  +     * @return
  +     */
  +    public boolean hasMergeFile(String file)
  +    {
  +        return mergeFiles.contains(file);
       }
   
       /**
  
  
  

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

Reply via email to