Hi all,
I'm having problems running a doclet with <javadoc>. First of all, here's my
"old" exec way:-
<target name="createJavaIndex">
<exec executable="javadoc">
<arg line=" -docletpath
c:/projects/search/build/classes;c:/devtools/jakarta/etc/lucene-1.2-rc3/luce
ne-1.2-rc3.jar -doclet JavadocIndexer -d build/index src/java/*.java"/>
</exec>
</target>
which works fine.
Trying to do this the "right way":-
<target name="javadoc">
<javadoc
sourcepath="/projects/search/src/java"
sourcefiles="*.java"
docletpath="c:/projects/search/build/classes;c:/devtools/jakarta/etc/lucene-
1.2-rc3/lucene-1.2-rc3.jar">
<doclet name="JavadocIndexer">
<param name="-d" value="build/index"/>
</doclet>
</javadoc>
</target>
Gives
javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source file C:\projects\search\*.java...
[javadoc] error: cannot read: C:\projects\search\*.java
[javadoc] 1 error
So, first of all, javadoc seems to be ignoring the sourcepath attribute?
Secondly, I guess javadoc doesn't support wildcards? The nested <source> tag
doesn't seem to help as it only takes a single sourcefile.
Perhaps I should modify the task to accept a fileset for the sourcefiles?
Oh, BTW, I've also tried
packagenames="*" instead of sourcefiles="*.java"
which gives
javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package build...
[javadoc] javadoc: No source files for package build
[javadoc] Loading source files for package etc...
[javadoc] javadoc: No source files for package etc
[javadoc] Loading source files for package src...
[javadoc] javadoc: No source files for package src
[javadoc] 3 errors
Again, javadoc seems to be ignoring the sourcepath.
Ideas?
Bye,
Les
P.S.
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
Ant version 1.4.1 compiled on February 7 2002
Win2K
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>