User: stevensa
  Date: 02/10/01 23:45:45

  Modified:    core/src/xdoclet DocletTask.java
  Log:
  Include an addFileset method, for ant-docs.
  
  Revision  Changes    Path
  1.53      +39 -3     xdoclet/core/src/xdoclet/DocletTask.java
  
  Index: DocletTask.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/DocletTask.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -w -r1.52 -r1.53
  --- DocletTask.java   11 Sep 2002 00:00:55 -0000      1.52
  +++ DocletTask.java   2 Oct 2002 06:45:44 -0000       1.53
  @@ -14,6 +14,7 @@
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.DynamicConfigurator;
   import org.apache.tools.ant.Project;
  +import org.apache.tools.ant.types.FileSet;
   
   import xjavadoc.ant.XJavadocTask;
   
  @@ -34,7 +35,7 @@
    */
   public class DocletTask extends XJavadocTask implements DynamicConfigurator
   {
  -    // ant will replace the tag with the version propperty specified in build.xml
  +    // ant will replace the tag with the version property specified in build.xml
       public final static String XDOCLET_VERSION = "@VERSION@";
   
       /**
  @@ -193,6 +194,11 @@
           this.packageSubstitutions = packageSubstitutions;
       }
   
  +    /**
  +     * @param name
  +     * @param value
  +     * @todo         i18n
  +     */
       public void setDynamicAttribute(String name, String value)
       {
           throw new BuildException("The <" + getTaskName() + "> task doesn't support 
the \"" + name + "\" attribute.");
  @@ -204,10 +210,11 @@
        * @param src    The new PackageNames value
        * @deprecated
        * @ant.ignore
  +     * @todo         i18n
        */
       public void setPackageNames(String src)
       {
  -        throw new BuildException("packageNames is obsolete since xjavadoc was 
introduced. Use a fileset instead");
  +        throw new BuildException("packageNames is obsolete since xjavadoc was 
introduced. Use a fileset instead.");
       }
   
       /**
  @@ -216,10 +223,11 @@
        * @param src    The new ExcludePackageNames value
        * @deprecated
        * @ant.ignore
  +     * @todo         i18n
        */
       public void setExcludePackageNames(String src)
       {
  -        throw new BuildException("excludePackageNames is obsolete since xjavadoc 
was introduced. Use a fileset instead");
  +        throw new BuildException("excludePackageNames is obsolete since xjavadoc 
was introduced. Use a fileset instead.");
       }
   
       /**
  @@ -306,6 +314,24 @@
           packageSubstitutions.add(ps);
       }
   
  +    /**
  +     * Ant's &lt;fileset&gt; definition. To define the files to parse.
  +     *
  +     * @param set  a fileset to add
  +     */
  +    public void addFileset(FileSet set)
  +    {
  +        // does nothing apart from calling super - it's only here for the
  +        // javadocs, for the generated documentation.
  +        super.addFileset(set);
  +    }
  +
  +    /**
  +     * @param name
  +     * @return
  +     * @exception BuildException
  +     * @todo                      i18n
  +     */
       public Object createDynamicElement(String name) throws BuildException
       {
           if (!isModulesRegistered) {
  @@ -334,6 +360,7 @@
        *
        * @param subtask             Describe the method parameter
        * @exception BuildException
  +     * @todo                      i18n
        */
       public void addTemplate(TemplateSubTask subtask) throws BuildException
       {
  @@ -423,6 +450,10 @@
           return configs;
       }
   
  +    /**
  +     * @exception BuildException
  +     * @todo                      i18n
  +     */
       protected void start() throws BuildException
       {
           try {
  @@ -463,6 +494,7 @@
        * to verify that classpath is OK.
        *
        * @param className
  +     * @todo             i18n
        */
       protected void checkClass(String className)
       {
  @@ -501,6 +533,9 @@
           }
       }
   
  +    /**
  +     * @todo   i18n
  +     */
       private void registerModules()
       {
           // Register subtasks that apply to us (they do if they in xdoclet.xml have 
declared us as parent)
  @@ -610,4 +645,5 @@
               configs.put((prefix + configParam.getName()).toLowerCase(), 
configParam.getValue());
           }
       }
  +
   }
  
  
  


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to