ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: How do you write a good javadoc task?
Date Tue, 30 Jul 2002 07:12:03 GMT
On Sat, 27 Jul 2002, Michael B. Allen <miallen@eskimo.com> wrote:
> This doesn't work:
> 
> <target name="d">
>     <delete dir="docs/api"/>
>     <mkdir dir="docs/api"/>
>     <javadoc destdir="docs/api">
>         <fileset dir="src">
>             <include
>             name="jcifs/smb/SmbFile.java,jcifs/smb/SmbFileOutputStream.java"/>
>         </fileset>
>     </javadoc>
> </target>
> 
> I get:
> 
> /home/miallen/p/j/jcifs_0.6.5/build.xml:71: The <javadoc2> task
> doesn't support the nested "fileset" element.

(1) You are not using Ant 1.5 (1.4.1's <javadoc> doesn't support
<fileset>).

(2) <include>'s name attribute expects a single pattern, not multiple
patterns.  Use two <include> elements or the includes attribute of
<fileset>.

For an option that works in 1.4.1 and 1.5, take a look at <javadoc>'s
sourcefiles attribute.

Stefan

--
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