Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Ant - <javadoc > -- <fileset > exclude not working

Ant - <javadoc > -- <fileset > exclude not working

2005-05-20       - By Blagassie@(protected)
Reply:     1     2     3     4     5     6  

Thanks for the suggestions; however, it did not make a difference.

-----Original Message-----
From: Jeffrey E Care [mailto:carej@(protected)]
Sent: Friday, May 20, 2005 3:52 PM
To: Ant Users List
Subject: Re: Ant - <javadoc> -- <fileset> exclude not working

Try taking the ".\" off the front of your patterns.

--
Jeffrey E. Care (carej@(protected))
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


<Blagassie@(protected)> wrote on 05/20/2005 03:45:58 PM:

> Hi,
>
>
>
> I am attempting to use the JavaDoc tag in an ant build as follows
>
> to create my JavaDoc.  I have a small subset of public classes
>
> which I want to exclude from the final JavaDoc.  According to the
>
> Ant document, I should be able to use the <fileset> tag to accomplish
>
> this.  However, the following builds the JavaDoc but just ignores the
>
> exclude statement of the <fileset> tag.
>
>
>
> Any suggestions as to why this may not be working....
>
>
>
> Thanks,
>
>
>
> Brian
>
>
>
> <?xml version="1.0"?>
>
> <project default="javadoc">
>
>    <target name="javadoc">
>
>     <javadoc destdir="D:\ProjectBuild\javadoc"
>
>        access="public"
>
>        use="true"
>
>        notree="false"
>
>        nonavbar="false"
>
>        noindex="false"
>
>        splitindex="true"
>
>         author="true"
>
>        version="true"
>
>        nodeprecatedlist="false"
>
>        nodeprecated="false"
>
>        sourcepath="."
>
>        overview=".\overview.html"
>
>        stylesheetfile=".\stylesheet.css"
>
>        windowtitle="My Program API">
>
>        <packageset dir=".">
>
>          <include name="com\myprogram\demo"/>
>
>        </packageset>
>
>        <packageset dir=".">
>
>          <include name="com\myprogram\demo\dao"/>
>
>        </packageset>
>
>        <packageset dir=".">
>
>          <include name="com\myprogram\demo\vo"/>
>
>        </packageset>
>
>        <packageset dir=".">
>
>          <include name="com\myprogram\util"/>
>
>        </packageset>
>
>        <fileset dir=".">
>
>              <include name=".\com\myprogram\demo\** .\com\
> myprogram\demo\dao\**  .\com\ myprogram\demo\vo\** .\com\ myprogram
> \util\**"/>
>
>            <exclude name=".\com\myprogram\demo\dao\TestDAO.java"/>
>
>        <fileset/>
>
>         <link href="http://java.sun.com/products/jdk/1.2/docs/api"/>
>
>        </javadoc>
>
>     </target>
>
> </project>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.