ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Tuft Muller" <...@online.no>
Subject RE: JavaDoc generation
Date Mon, 28 Jan 2002 19:40:19 GMT
Dave,

This seems to be more viable than my own solution. One question though; it
seems like your script anticipates the modules to be direct subdirectories
of "basedir". What if the modules are spread in directories of arbitrary
depth?

--

Thomas



| -----Original Message-----
| From: Herman, Dave [mailto:dherman@intrado.com]
| Sent: 28 January 2002 19:13
| To: 'Ant Users List'
| Subject: RE: JavaDoc generation
|
|
| Thomas,
|
| Here's a kind of cheesy solution that uses Javascript (you'll need to
| install the extra jars for this -- see the documentation for the "script"
| task). It works as long as you come up with some sort of policy like "all
| immediate sub-directories with a build.xml file at their top-level will be
| considered a project, and if they have a subdirectory called src/
| then this
| will be added to the source path." You could modify the script to
| work with
| whatever particular policy you have.
|
| I don't know if there's a more straight-forward way to do this with
| filesets, but I have a terrible time with them, and this was the first
| solution I came up with. There are probably better ways to do it, though.
|
| Dave Herman
|
| > -----Original Message-----
| > From: Thomas Tuft Muller [mailto:ttm@online.no]
| > Sent: Monday, January 28, 2002 11:51 AM
| > To: ant-user@jakarta.apache.org
| > Subject: JavaDoc generation
| >
| >
| > Ant-gurus,
| >
| > I have Java about 1200 java source files spread out in different
| > directories. I want to create JavaDoc for all modules
| > *combined*, i.e. all
| > source-directories should be seen as one, such that proper
| > links between
| > dependant modules are kept.
| >
| > I want to create a generic doc build task at a "top-level" in
| > a way that new
| > source trees can be added without the need to modify this task.
| >
| > A guess one solution is to copy all source files to a
| > temporary directory
| > using a the copy task and a mapper (all package names start
| > with "test" or
| > "com"), and run javadoc on this temporary directory. I think
| > this is quite
| > cumbersome, though, and I would appreciate if anyone had a
| > better approach.
| >
| > Thanx,
| >
| > --
| >
| > Thomas
| >
| >
| >
| >
| >
| >
| >
| >
| >
| >
| >
| >
| >
| > **************************************************************
| > ***********
| > Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All
| > rights reserved.
| > Confidential. No liability whatsoever is accepted for any
| > loss or damage
| > suffered as a result of accessing this message or any attachments.
| >
| > --
| > To unsubscribe, e-mail:
| > <mailto:ant-user-unsubscribe@jakarta.apache.org>
| > For additional commands, e-mail:
| > <mailto:ant-user-help@jakarta.apache.org>
| >
|
|



*************************************************************************
Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. 
Confidential. No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

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


Mime
View raw message