Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Javadoc Multiple Projects using Ant

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to Javadoc multiple projects using ant and am not having much luck. I cannot seem to specify that I want to work on multiple projects wihout javadoc complaining that the source files are wrongly named.

I have the following structure on CVS:
ProjectA/src/lots of java code...
ProjectB/src/some more java code...
ProjectC/src/more java...

Using ant I check this out into a directory called "All" and can build it all OK.

However when I attempt to javadoc the projects I can't get it to work properly. Javadoc complains that the source files cannot be found and this is due to the fact that the names of the projects are confusing the Javadoc compiler.

This is the relevant part of my build.xml:



However if I change the packageset from the above to the fileset structure below, I can succesfully generate Javadoc for the individual projects, but then the package structure is not created (which is what I need!)



Can anyone help?

Regards,
Dave
 
Dave Edds
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm... I simplified my above example to help avoid confusion, but it appears that my simplification has changed the problem!!

Basically I have periods in my project names! Does this make javadoc think that I'm in the source tree? Perhaps I am now asking this in the wrong forum...

Although I am still not getting Javadoc to work and am instead getting an error stating "No public or protected classes found to document." And there are classes to exist in the source!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dave,

Try the following:

Where ** would be the directory immediately below your basedir.

Anu Sindwani
[ November 08, 2004: Message edited by: Anu Sindwani ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic