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="" offline="true"
    packagelistLoc="${build.dir}/codebase/wt/clients/library/api" />
      <link offline="true" href="" 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