ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Javadoc on all subdirectories
Date Thu, 07 Jul 2005 08:51:57 GMT
I did a quick test, which works for me:

1. Created a simple project:
1.1 directory layout
    C:\ant\anttests\javadoc\build.xml
    C:\ant\anttests\javadoc\dir1\org\apache\tools\ant\HelloWorld.java
    C:\ant\anttests\javadoc\dir2\org\apache\ant\HelloWorld2.java
1.2 content - build.xml
    <project>
        <delete dir="javadoc"/>
        <mkdir dir="javadoc"/>

        <javadoc destdir="javadoc">
            <fileset dir="." includes="**/*.java"/>
        </javadoc>
    </project>
1.3 content - HelloWorld.java
    package org.apache.tools.ant;

    /** Class comment. */
    public class HelloWorld {
        /** Attribute comment. */
        public String message = "Hello World";

        /** Method comment. 
         *  @param args - not used
         */
        public static void main(String[] args) {
            System.out.println(message);
        }
    } 
1.4 content - HelloWorld2.java
    - same as HelloWorld.java, different package and class name
1.5 trying out

C:\ant\anttests\javadoc>ant
Buildfile: build.xml
   [delete] Deleting directory C:\ant\anttests\javadoc\javadoc
    [mkdir] Created dir: C:\ant\anttests\javadoc\javadoc
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source file C:\ant\anttests\javadoc\dir1\org\apache\tools\ant\HelloWorld.java...
  [javadoc] Loading source file C:\ant\anttests\javadoc\dir2\org\apache\ant\HelloWorld2.java...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.5.0
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...

BUILD SUCCESSFUL



Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Kjersti Berg [mailto:kjersti.berg@gmail.com] 
>Gesendet: Donnerstag, 7. Juli 2005 10:37
>An: Ant Users List
>Betreff: Re: Javadoc on all subdirectories
>
>On 07/07/05, Jan.Materne@rzf.fin-nrw.de 
><Jan.Materne@rzf.fin-nrw.de> wrote:
>> first thought would be
>>  <fileset dir="." includes="**/*.java"/>
>> 
>> Jan
>> 
>
>Thanks for the quick reply. This gives me this error:
>doc-all:
>     [javadoc] BUILD FAILED: 
>file:C:/Workspace_WSADIE5/ALT_FOR_JAVADOC/NLP_Build/build.xml:1
>89: No source files and no packages have been specified.
>
>Kjersti
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message