It seems a bug with Java IO API because i�ve just created a Java dir program
and that kind of command ( ** ) don�t work!
Matthew Kuperus Heun <[EMAIL PROTECTED]> wrote:
>Hi Folks:
>
>I'm trying to use the javadoc task with "Ant version 1.4.1 compiled
>on October 11 2001". I don't think it handles "**" characters or
>implied "**" characters in pathelements of a nested sourcepath
>element. See the snippet of my build.xml file below for the comments
>which discuss the errors I receive.
>
>Is this, in fact, a bug? Or is it operator error due to my
>misunderstanding of how the javadoc task should work?
>
>Any suggestions and/or comments are welcome. If this is a real bug
>and not operator error, I'll file a bug report.
>
>Note that there two files in this test. Both have the "package
>com.foo.bar;" statement. They are:
>
>${basedir}/src/SrcDir1/com/foo/bar/Class1.java
>${basedir}/src/SrcDir1/com/foo/bar/Class2.java
>
>I will be happy to send a zip file containing my unit test case and
>its directory structure if that would help anyone to duplicate the
>behavior that I see.
>
>Using MacOSX 10.1.1.
>
>Cheers,
>
>Matt
>
>
>--------------------------------------------------------------------
>
>
>
> <target name="doc">
> <mkdir dir="${basedir}/doc"/>
> <javadoc destdir="${basedir}/doc" packagenames="com.foo.*">
>
> <sourcepath>
>
> <!-- The next 2 lines work as expected and correctly
> write the API docs to destdir. -->
> <pathelement path="${basedir}/src/SrcDir1"/>
> <pathelement path="${basedir}/src/SrcDir2"/>
>
> <!-- The next line should be equivalent to the above code that works.
> But, it fails, saying "No packages or classes specified." -->
> <!-- <pathelement path="${basedir}/src/"/> -->
>
> <!-- The next line should be equivalent to the
> above non-working code because of the implied "**", but
> I receive a different error message, namely
> "build.xml:38: /Users/matt/Dev/JavaDocTest/src/** not found." -->
> <!-- <pathelement path="${basedir}/src/**"/> -->
>
> </sourcepath>
>
> </javadoc>
> </target>
>--
>
>
>Matthew Kuperus Heun
>Global Aerospace Corporation
>+1 (978) 922-7115 (voice & fax)
><http://www.gaerospace.com>
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
///////////////////////////////////////
Better well done than well said.
--//--
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
Modern Zen poem
///////////////////////////////////////
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience
the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>