The following java task fails with this error:

javadoc: error - invalid flag: -doclet 
com.sun.tools.doclets.formats.mif.MIFDoclet

which is a perfectly valid option for javadoc.

Notice java calls javadoc Main, which then

    <java dir="${sample}/example-commandline" classname="com.sun.tools.javadoc.Main" 
maxmemory="20M">
        <classpath>
           <pathelement
               location="/mifdoclet/ws/build/jar/mifdoclet_toolkit.jar" />
           <pathelement
               location="/jdk1.5.0/lib/tools.jar" />
        </classpath>
        <arg value="-doclet com.sun.tools.doclets.formats.mif.MIFDoclet" />
        <arg value="-d ./sample-out" />
        <arg value="-sourcepath ../sample-src" />
        <arg value="com.package1" />
    </java>


The equivalent command line command that works is:

java \
-classpath 
/mifdoclet/ws/build/jar/mifdoclet_toolkit.jar:/programs/jdk1.5.0/lib/tools.jar \
com.sun.tools.javadoc.Main \
-doclet com.sun.tools.doclets.formats.mif.MIFDoclet \
-d ./sample-out \
-sourcepath ../sample-src \
com.package1

Could something be wrong with the <arg value=xxx> lines?

-Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to