As far as I know, javadoc expect standar directory/package structure, do
that class foo.bar.Test lies in:
{src.home}/foo/bar/Test.java

The structure you are handling, is not standard (Isn't it giving you
problems with javac also?). If you switch to a standar directory structure
your problems will be solved.

Try this.. make this structure:
src
  '----ext
               '----glynwed
                       '-------order(conatin java files)
                                      '------clients (conatin java files)
                                      '------htmlclients (conatin java
files)
                                      '------orderbean (conatin java files)
  '---wt
'---query (conatin java files of wt.query package)

Now, if you use javadoc with src.home pointing to src and
packages="ext.*,wt.*" you will get all the packages and classes included in
the documentation.

Good Luck.

Ylan.
-----Original Message-----
From: Dhirendra Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 11:54 PM
To: [EMAIL PROTECTED]
Subject: generating javadoc of diff packages under same folder


I had alredy sent this mail earlier, since is has not appeared in list so
far, iam sending it agian. Please ignore if you receive the earlier one.

Hi all, Iam trying to generate javadoc of my project my files with javadoc
task of Ant. here i have directory structure is src/ext as shown below. Here
i have two java files in query folder and they both these files are in
wt.query package. Rest all java files under ext directory are in
ext.glynwed.* package. My javadoc task in build.xml is as shown below.

src
  '----ext
          '----glynwed
                       '-------order(conatin java files)
                                      '------clients (conatin java files)
                                      '------htmlclients (conatin java
files)
                                      '------orderbean (conatin java files)
                                      '------Windchill_5.1
                                                        '-------------src

'---wt

'---query (conatin java files of wt.query package)

<target name="javadoc">
  <mkdir dir="${build.javadoc}" />
  <javadoc packagenames="ext.glynwed.*"
           sourcepath="${src.dir}"
           maxmemory="256m"
           destdir="${build.javadoc}"
           author="true"
           version="true"
           use="true"
    package="true"
           windowtitle="Glynwed WT extended API"
           doctitle="Glynwed WT extended API"
           bottom="&#169; Copyright 2001 Parametric Technology Corporation"
>
      <link href="../api" offline="true"
    packagelistLoc="${build.dir}/codebase/wt/clients/library/api" />
      <link offline="true"
href="http://java.sun.com/products/jdk/1.2/docs/api/";
packagelistLoc="${localjava.home}/docs/api"/>
  </javadoc>
  </target>

If i remove Windchill_5.1 folder from src/ext then above code works fine, if
i include Windchill_5.1 then it gives error saying that
  [javadoc] javadoc: No package, class, or source file found named
ext.glynwed.order.Windchill_5.1.src.wt.query.
  [javadoc] 1 error

This is because those two java files in query folder are in wt.querry
package. So please tell me how can i include more than one package . I tried
putting wt.* in packagenames attribute with comma, but it did not work. Also
javadoc does not support any include or exclude attributes.

Thanks in advance
DK

Reply via email to