ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Phonsa <VPho...@suz.com>
Subject RE: javadoc of multiple sub-projects
Date Thu, 13 Nov 2003 16:49:34 GMT
Hi Svetlin,

If you are trying to build javadocs for multiple projects ( subprojects or
not) then you should consider for-each task of ant-contrib.

I achieved this functionality by using the javadoc task in for-each. It
would be like a for loop in java would loop through all your projects and
build docs.

I had another twist to it, I had to build docs from my CVS repository and
that's how I did it.

I can send you more details if you need.

Thanks

Vikas

-----Original Message-----
From: Svetlin Stanchev [mailto:stanchev@360t.com] 
Sent: Thursday, November 13, 2003 4:49 AM
To: Ant Users List
Subject: javadoc of multiple sub-projects

Javadoc cannot meaningfully "incrementally" build docs of an entire
project group based on already
existing docs of subprojects.

That is why I am attempting to feed to it a path consisting of all
source/class subdirectories of all individual projects. I was able to
make it work for one subproject only, and only using a fileset. So I am
surely doing smth fundamentally wrong. 

For instance this does not work:

    <echo> Src path: ${javadoc.src.path}</echo>
    <echo> Class path: ${javadoc.class.path}</echo>
    <javadoc 
      destdir="${javadoc.dir}"
      author="true"
      use="yes"
      version="yes"
      windowtitle="My Documentation"
      private="yes"
      linksource="yes"
      breakiterator="yes"
      verbose="no"
      failonerror="no"
      maxmemory="384m"
      useexternalfile="yes">
      <sourcepath>
		<pathelement path="{javadoc.src.path}"/>
      </sourcepath>
      <classpath>
		<pathelement path="${javadoc.class.path}"/>
		<pathelement path="${mountpoint.libs}"/>
      </classpath>
    </javadoc>

It fails with:
BUILD FAILED
D:\cleanstart\buildroot\masterbuild\build.xml:199: No source files and
no packag
es have been specified.

Although any directory in the list correctly points to the source root
hierarchy:

     [echo]  Src path:
D:\cleanstart\buildroot/masterbuild/projects/ctrl/src;D:\
cleanstart\buildroot/masterbuild/projects/clients/src;D:\cleanstart\buil
droot/ma
sterbuild/projects/TexCoreCommon/src;
     [echo]  Class path:
D:\cleanstart\buildroot/masterbuild/projects/ctrl/build
/classes;D:\cleanstart\buildroot/masterbuild/projects/clients/build/clas
ses;D:\c
leanstart\buildroot/masterbuild/projects/TexCoreCommon/build/classes;

Some of the above projects do not have Java source, but this should not
lead to a fail, I think.

Any help appreciated,
-- 
Svetlin


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

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


Mime
View raw message