Javadoc fails due to long command (I think)

First off, I'm a javadoc neophyte. I'm trying to get javadoc working via an Ant script. Our project has many, many, many classes so that when I try to do something like this:

<javadoc public="true" windowtitle="testJavaDoc"

classpath="C:\cc\projectA\Build\BuildTools\3rdParty\Win32\IBM-JDK-1.4.2\bin"

destdir="${javadoc.doc.dir}/html"

packagenames="com.ibm.projectA.*"

sourcepath="${root}">

<classpath>

<pathelement path="${classpath}"/>

<fileset dir="${dist}/lib">

<include name="**/*.jar"/>

</fileset>

</classpath>

<fileset dir="${root}/Application/JavaSource/com/ibm/projectA/app">

<include name="**/*.java"/>

</fileset>

</javadoc>

I get "Javadoc failed: java.io.IOException: CreateProcess: C:\.....". I assume this is because the generated command is way too long. Any idea how I combat this? I have barely got into all the class files I need!

[1295 byte] By [answer_pleasea] at [2007-10-2 12:57:06]
# 1
With some help from a coworker, I have figured out what I was doing wrong. Thanks anyways!
answer_pleasea at 2007-7-13 10:14:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Hi,I'm having this trouble too... could you please post how you fixed it?Kind regards,Drew Noakes
drewnoakesa at 2007-7-13 10:14:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

I was using fileset

when I should have been using packageset

. Once I changed to use that (and I got the packages correctly set up) things worked much better. Here is an example:

<javadoc public="true" windowtitle="projectA JavaDoc"

classpath="C:\cc\projectA\Build\BuildTools\3rdParty\Win32\IBM-JDK-1.4.2\bin"

destdir="${javadoc.doc.dir}/html"

packagenames="com.ibm.lifesci.projectA"

sourcepath="${root}">

<classpath>

<pathelement path="${classpath}"/>

<fileset dir="${dist}/lib">

<include name="**/*.jar"/>

</fileset>

</classpath>

<packageset dir="${root}/Application/projectA/JavaSource">

<include name="**"/>

</packageset>

answer_pleasea at 2007-7-13 10:14:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...