ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <>
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"
  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}"
    windowtitle="G11N Tool Kit"
    <packageset dir="${src.dir}"
      <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/**"/>
    <classpath refid="classpath.javadoc"/>

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

HTH Bill

-----Original Message-----
From: JS developer [] 
Sent: Tuesday, July 12, 2005 10:43 AM
Subject: build.xml for javadoc of entire folder tree

i'm a beginner with ant, i want to generate the javadoc for the entire 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,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message