ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/make/org/apache/myrmidon/build AntDocSubTask.java
Date Wed, 06 Mar 2002 10:58:17 GMT
donaldp     02/03/06 02:58:17

  Modified:    proposal/myrmidon/src/make/org/apache/myrmidon/build
                        AntDocSubTask.java
  Log:
  Use URLs directly
  
  Revision  Changes    Path
  1.3       +3 -4      jakarta-ant/proposal/myrmidon/src/make/org/apache/myrmidon/build/AntDocSubTask.java
  
  Index: AntDocSubTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/make/org/apache/myrmidon/build/AntDocSubTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AntDocSubTask.java	6 Mar 2002 10:57:27 -0000	1.2
  +++ AntDocSubTask.java	6 Mar 2002 10:58:17 -0000	1.3
  @@ -17,7 +17,7 @@
    * Generates the XML Documentation for Ant types (including tasks and DataTypes).
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/03/06 10:57:27 $
  + * @version $Revision: 1.3 $ $Date: 2002/03/06 10:58:17 $
    */
   public class AntDocSubTask
       extends TemplateSubTask
  @@ -33,9 +33,8 @@
       public AntDocSubTask()
       {
           setDestinationFile( GENERATED_FILE_NAME );
  -        final String templateFile =
  -            getClass().getResource( DEFAULT_TEMPLATE_FILE ).getFile();
  -        setTemplateFile( new File( templateFile ) );
  +        final URL resource = getClass().getResource( DEFAULT_TEMPLATE_FILE );
  +        setTemplateURL( resource );
   
           final TemplateSubTask.ExtentTypes extent = new TemplateSubTask.ExtentTypes();
           extent.setValue( "hierarchy" );
  
  
  

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


Mime
View raw message