ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Phonsa <>
Subject RE: javadoc task error
Date Mon, 06 Oct 2003 20:09:57 GMT
Thanks for ur replies guys,
I'm using ant for scanning a number of folders ( each for a separate project
) and then generate javadocs for each project. I'm  giving the target being
used below. Each project folder has an "src" folder which holds the java
source files in the package directory structure. But there are some older
projects with bad directory structure and they don't have an src folder.
When javadoc encounters such a project it crashes/exits. What can I do to
have the javadoc skip ( or just do nothing )those projects that don't have
an src directory and proceed without crashing. I might be able to do that by
checking if "src" is available but is there another intelligent way ?

<javadoc packagenames="com.suz.*"

	<fileset dir="${}" defaultexcludes="yes">
      <include name="**/src/com/**" />


-----Original Message-----
From: Stefan Bodewig [] 
Sent: Monday, October 06, 2003 12:18 AM
Subject: Re: javadoc task error

On Fri, 3 Oct 2003, Vikas Phonsa <> wrote:

> As you can see, I'm first printing out all the properties that I'm
> supplying to the javadoc task.

You should better run ant -verbose to see what Ant actually uses.

You almost certainly do not want to use <fileset> as this would list
all source files, it looks as if pointing <javadoc> to ${}
as its source directory would be more appropriate. 

The **/src/ makes me a bit nervous.  Use a sourcepath to point to all
your src directories instead (i.e. the parents of "com" directories
that hold classes you want to see javadoc'ed).


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

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

View raw message