User: vharcq  
  Date: 02/03/30 01:34:45

  Modified:    core/src/xdoclet TemplateSubTask.java
  Log:
  Test xdoclet.force before anything else in timestamp checking
  
  Revision  Changes    Path
  1.31      +15 -1     xdoclet/core/src/xdoclet/TemplateSubTask.java
  
  Index: TemplateSubTask.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/TemplateSubTask.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -w -r1.30 -r1.31
  --- TemplateSubTask.java      24 Mar 2002 17:44:17 -0000      1.30
  +++ TemplateSubTask.java      30 Mar 2002 09:34:45 -0000      1.31
  @@ -29,7 +29,7 @@
    *
    * @author    Ara Abrahamian ([EMAIL PROTECTED])
    * @created   Sep 25, 2001
  - * @version   $Revision: 1.30 $
  + * @version   $Revision: 1.31 $
    */
   public class TemplateSubTask extends SubTask
   {
  @@ -667,6 +667,20 @@
   
                if( cat.isDebugEnabled() )
                        cat.debug( "Generation need check for " + file.getName() );
  +
  +        if( getContext().isForce() )
  +             {
  +                     if( cat.isDebugEnabled() )
  +                             cat.debug( "Force generation enabled" );
  +                     return true;
  +             }
  +
  +             if( isGuessGenerationNeeded() == false )
  +             {
  +                     if( cat.isDebugEnabled() )
  +                             cat.debug( "guessGenerationNeeded enabled" );
  +                     return true;
  +             }
   
                // 1. Check the classpath for timestamp on XDOCLET JAR
                if( file.lastModified() < xdocletJar.lastModified() )
  
  
  

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

Reply via email to