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:57:27 GMT
donaldp     02/03/06 02:57:27

  Modified:    proposal/myrmidon/src/make/org/apache/myrmidon/build
                        AntDocSubTask.java
  Log:
  Suck manifest out of classpath
  
  Revision  Changes    Path
  1.2       +8 -6      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AntDocSubTask.java	6 Mar 2002 09:33:08 -0000	1.1
  +++ AntDocSubTask.java	6 Mar 2002 10:57:27 -0000	1.2
  @@ -17,23 +17,25 @@
    * Generates the XML Documentation for Ant types (including tasks and DataTypes).
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2002/03/06 09:33:08 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/06 10:57:27 $
    */
  -public class AntDocSubTask 
  +public class AntDocSubTask
       extends TemplateSubTask
   {
       public final static String SUBTASK_NAME = "antdoc";
   
       private static final String GENERATED_FILE_NAME = "{0}.xml";
  -    private static final String DEFAULT_TEMPLATE_FILE = 
  +    private static final String DEFAULT_TEMPLATE_FILE =
           "/org/apache/myrmidon/build/type.j";
   
       private File m_docsDestDir;
   
       public AntDocSubTask()
       {
  -        setTemplateFile( new File( DEFAULT_TEMPLATE_FILE ) );
           setDestinationFile( GENERATED_FILE_NAME );
  +        final String templateFile =
  +            getClass().getResource( DEFAULT_TEMPLATE_FILE ).getFile();
  +        setTemplateFile( new File( templateFile ) );
   
           final TemplateSubTask.ExtentTypes extent = new TemplateSubTask.ExtentTypes();
           extent.setValue( "hierarchy" );
  @@ -41,7 +43,7 @@
       }
   
       /**
  -     * Specifies the directory that is the destination of generated generated 
  +     * Specifies the directory that is the destination of generated generated
        * xml documentation for types.
        */
       public void setDocsDestDir( final File docsDestDir )
  @@ -57,7 +59,7 @@
       /**
        * Called to validate configuration parameters.
        */
  -    public void validateOptions() 
  +    public void validateOptions()
           throws XDocletException
       {
           super.validateOptions();
  
  
  

--
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