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: JavaDoc errors???
Date Tue, 25 Jan 2000 09:41:26 GMT
I can't tell from your info what ${packages} is defined to.
It has to be a comma-separated (no blanks) list of packages.

Also, I am using the latest build of ant which uses exec to run javadoc.

Anders

my build.xml

<project name="share" default="main" basedir="..">
   <target name="init">
	  <property name="build.compiler" value="classic"/>
	  <property name="share.build" value="build/share"/>
	  <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="srcdir" value="java/src"/>
	  <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"/>
	  <property name="packages"
value="se.btj.share.net,se.btj.share.net.mail,se.btj.share.net.mime,se.btj.s
hare.sql,se.btj.share.tools,se.btj.share.tools.tasks,se.btj.share.util"/>
   </target>
   
   <target name="prepare">
      <mkdir dir="${share.build}"/>
      <mkdir dir="${share.build}/classes"/>
      <mkdir dir="${share.build}/doc"/>
      <mkdir dir="${share.build}/lib"/>
      <copydir src="java/lib" dest="${share.build}/lib"/>
   </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>
   
   <target name="dist" depends="main">
      <!-- need to make a way for a jar to include other jar files -->
      <jar jarfile="${share.build}/share.jar"
basedir="${share.build}/classes" items="se,etc"
manifest="${share.build}/classes/etc/manifest"/>
   </target>
   
   <target name="clean">
      <deltree dir="${share.build}"/>
   </target>
</project>


> -----Ursprungligt meddelande-----
> Från:	Pierpaolo Fumagalli [SMTP:pier@apache.org]
> Skickat:	den 25 januari 2000 09:47
> Till:	ant-dev@jakarta.apache.org
> Ämne:	Re: SV: JavaDoc errors???
> 
> Janmyr Anders wrote:
> > 
> > Hello,
> > 
> > It had the same problem with the Javadoc task.
> > It is not using the correct path (not using the basedir attribute of
> > project)
> > If you use a path relative to your current directory it should work
> fine.
> 
> This is what I figured out:
> 
> 
> <project default="package" basedir=".">
> ...
>   <property name="build.src" value="./build/src"/>
> ...
>   <property name="build.javadocs" value="./build/javadocs"/>
> ...
>   <target name="javadocs" depends="prepare-src">
>     <mkdir dir="${build.javadocs}"/>
>     <javadoc2 packagenames="${packages}"
>               sourcepath="${build.src}"
>               destdir="${build.javadocs}"
>               author="true"
>               version="true"
>               use="true"
>               windowtitle="${Name} API"
>               doctitle="${Name}"
>               bottom="Copyright &#169; ${year} ...."/>
>   </target>
> ...
> </project>
> 
> And it says that no packages have been specified...
> 
> 	Pier
> 
> -- 
> --------------------------------------------------------------------
> -          P              I              E              R          -
> stable structure erected over water to allow the docking of seacraft
> <mailto:pier@betaversion.org>    <http://www.betaversion.org/~pier/>
> --------------------------------------------------------------------
> - ApacheCON Y2K: Come to the official Apache developers conference -
> -------------------- <http://www.apachecon.com> --------------------

Mime
View raw message