ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janmyr Anders <anders.jan...@btj.se>
Subject SV: SV: SV: JavaDoc errors???
Date Tue, 25 Jan 2000 15:08:15 GMT
My problem with base path is this:

It isn't used when I have relative paths in srcdir and classpath.
If i put my build.xml file in a bin catalog and use .. as basedir
I have to add .. to some of the the paths in the javadoc task.
Example:

<project name="share" default="main" basedir="..">
   <target name="init">
	  <property name="build.compiler" value="classic"/>
	  <property name="share.build" value="build/share"/>
	  <property name="packages"
value="se.btj.share.net,se.btj.share.tools"/>
	  <property name="srcdir" value="java/src"/>

<!-- these two differ -->
	  <property name="classpath"
value="java/lib/servlet-2.2.0.jar:java/lib/oracle.zip:java/lib/ant.jar:java/
lib/xml.jar:java/lib/moo.jar"/>

	  <property name="docpath"
value="../java/lib/servlet-2.2.0.jar:../java/lib/oracle.zip:../java/lib/ant.
jar:../java/lib/xml.jar:../java/lib/moo.jar"/>

   </target>

   
   <target name="main" depends="prepare">
      <javac srcdir="${srcdir}" destdir="${share.build}/classes" debug="on"
deprecation="on" classpath="${classpath}"/>
   </target>
   
   <target name="doc" depends="main">
      <javadoc sourcepath="../java/src" destdir="${share.build}/doc"
classpath="${docpath}" packagenames="${packages}"/>
   </target>

> -----Ursprungligt meddelande-----
> Från:	Stefano Mazzocchi [SMTP:stefano@apache.org]
> Skickat:	den 25 januari 2000 11:58
> Till:	ant-dev@jakarta.apache.org
> Ämne:	Re: SV: SV: JavaDoc errors???
> 
> Janmyr Anders wrote:
> > 
> > I can't tell from your info what ${packages} is defined to.
> > It has to be a comma-separated (no blanks) list of packages.
> 
> No, it hasn't at all!
> 
> I wrote <javadoc> exactly to allow you to specify
> 
>  packagenames="se.btj.share.*"
> 
> and javadoc will take care of finding the packages by parsing the java
> files and locating the right packages. Of course, the old funtionality
> is still there, in case you don't want to generate javadocs for some
> packages.
>  
> > Also, I am using the latest build of ant which uses exec to run javadoc.
> 
> What is your problem with base path?
> 
> -- 
> Stefano Mazzocchi      One must still have chaos in oneself to be
>                           able to give birth to a dancing star.
> <stefano@apache.org>                             Friedrich Nietzsche
> --------------------------------------------------------------------
>  Come to the first official Apache Software Foundation Conference!  
> ------------------------- http://ApacheCon.Com ---------------------
> 

Mime
View raw message