You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dmitri Ilyin <dm...@gmx.net> on 2002/11/14 16:33:22 UTC

Problem with javadoc task

Hi all,

please help me to realize what do i do wrong.

i have realy simple target:

<target name="docs" depends="">
    <javadoc destdir="../java_api" sourcepath="."
sourcefiles="tools/*.java"/>
</target>

i start ant script from my source directory (/users3/dmitri/modula/java). in
that directory i have one "tools" package. In that package i have my *.java
source files. The package structure is not the best, but it is already
developed and i have to use it.

OUTPUT:
Buildfile: build.xml

docs:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] javadoc: No package, class, or source file found named
/users3/dmitri/modula/java/tools/*.java.
  [javadoc] 1 error

BUILD SUCCESSFUL
Total time: 6 seconds

if i start javadoc directly:

rubens $ javadoc -d ../java_api tools/*.java
and it works.

Do i have configured something wrong.

Please help.

regards

Dmitri





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem with javadoc task

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 14 Nov 2002, Dmitri Ilyin <dm...@gmx.net> wrote:

> sourcefiles="tools/*.java"

sourcefiles doesn't deal with patterns.  Use a nested <fileset>
instead.

> rubens $ javadoc -d ../java_api tools/*.java
> and it works.

because the shell expands the glob for you.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>