avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/xdoclet BlockInfoSubTask.java
Date Fri, 01 Mar 2002 07:55:03 GMT
donaldp     02/02/28 23:55:03

  Modified:    src/java/org/apache/avalon/phoenix/tools/xdoclet
                        BlockInfoSubTask.java
  Log:
  Update to nweer version of xdoclet.
  
  Revision  Changes    Path
  1.2       +5 -4      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/xdoclet/BlockInfoSubTask.java
  
  Index: BlockInfoSubTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/xdoclet/BlockInfoSubTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BlockInfoSubTask.java	26 Feb 2002 11:15:48 -0000	1.1
  +++ BlockInfoSubTask.java	1 Mar 2002 07:55:03 -0000	1.2
  @@ -9,6 +9,7 @@
   
   import com.sun.javadoc.ClassDoc;
   import java.io.File;
  +import java.net.URL;
   import xdoclet.TemplateSubTask;
   import xdoclet.XDocletException;
   
  @@ -17,7 +18,7 @@
    *
    * @author <a href="mailto:vinay_chandran@users.sourceforge.net">Vinay Chandrasekharan</a>
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2002/02/26 11:15:48 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/01 07:55:03 $
    */
   public class BlockInfoSubTask 
       extends TemplateSubTask
  @@ -77,10 +78,10 @@
               throw new XDocletException( "'templatePath' attribute is missing ." );
           }
   
  -        if( null == getTemplateFile() || 
  -            !(getTemplateFile().exists()) || getTemplateFile().isDirectory())
  +        final URL template = getTemplateURL();
  +        if( null == template )
           {
  -            throw new XDocletException( "'template' file is missing parameter missing ."
);
  +            throw new XDocletException( "'template' is missing." );
           }
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message