ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <br...@webmethods.com>
Subject RE: build.xml for javadoc of entire folder tree
Date Tue, 12 Jul 2005 17:53:46 GMT
Here is a target that does the entire tree beginning at ${src.dir}. It
includes all the files in the directories that begin with the
${pkg.base.dir} directory. The classpath.javadoc property is set in the init
target and is shown following the javadoc target.

If you fiddle around with this you can probably make it work for your case.

<target name="javadoc"
  depends="init"
  description="Produces the API documentation files in JavaDoc format for
all the G11NToolKit classes.">
  <mkdir dir="${doc.dir}"/>
  <delete dir="${doc.dir.javadoc}"/>
  <javadoc destdir="${doc.dir.javadoc}"
    private="true"
    author="true"
    version="true"
    use="true"
    windowtitle="G11N Tool Kit"
    Overview="${src.dir}/overview.html">
    <packageset dir="${src.dir}"
      defaultexcludes="yes">
      <include name="${pkg.base.dir}/**" />
      <exclude name="${src.parser}/java/javacc-3.2/**"/>
      <exclude name="${src.parser}/html/nekohtml-0.9.3/**"/>
      <exclude name="${src.parser}/html/nekohtml-0.9.4/**"/>
      <exclude name="${src.parser}/html/Test/**"/>
    </packageset>
    <classpath refid="classpath.javadoc"/>
  </javadoc>
</target> 

<!-- A class path for the JavaDoc compiler. -->
<path id="classpath.javadoc">
  <fileset dir="./${src.lib}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
  </fileset>
  <fileset dir="${env.ANT_HOME}/lib">
    <include name="**/*.jar"/>
  </fileset>
</path>

HTH Bill

-----Original Message-----
From: JS developer [mailto:js_dev@rediffmail.com] 
Sent: Tuesday, July 12, 2005 10:43 AM
To: user@ant.apache.org
Subject: build.xml for javadoc of entire folder tree

hi,
i'm a beginner with ant, i want to generate the javadoc for the entire
src.zip that comes with the sun jdk download. I've tried a lot of standard
options with the build.xml, sourcepathref, filesets etc. but i get "build
failed". Also, it tries to add all the .java source files to the javadoc
command in one single command, naturally, the command exceeds the command
buffer and fails. Can anyone suggest a url or tutorial to make ant perform a
task iteratively on every sub folder and every sub-sub folder etc. by just
specifying the top folder name. I also tried eclipse, but mysteriously, the
tree view in its  export wizard does not show the source folders which it
should - eclipse users will know - others ignore.

Thanks in advance,
JS



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


Mime
View raw message