ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <cyriaque.dupoiri...@pcotech.fr>
Subject Doclet ?
Date Wed, 05 Dec 2001 11:09:18 GMT
Hello,

    Can you send me an example of javadoc task that use a specific doclet.
    I have made sevral tries but Ant always tell me that there is a bad 
option -d :

  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] javadoc: invalid flag: -d
  [javadoc] usage: javadoc [options] [packagenames] [sourcefiles] 
[classnames] [@files]
  [javadoc] -overview <file>          Read overview documentation from 
HTML file
  [javadoc] -public                   Show only public classes and members
  [javadoc] -protected                Show protected/public classes and 
members (default)
  [javadoc] -package                  Show package/protected/public 
classes and members
  [javadoc] -private                  Show all classes and members
  [javadoc] -help                     Display command line options
  [javadoc] -doclet <class>           Generate output via alternate doclet
  [javadoc] -docletpath <path>        Specify where to find doclet class 
files
  [javadoc] -1.1                      Generate output using JDK 1.1 
emulating doclet
  [javadoc] -sourcepath <pathlist>    Specify where to find source files
  [javadoc] -classpath <pathlist>     Specify where to find user class files
  [javadoc] -bootclasspath <pathlist> Override location of class files 
loaded
  [javadoc]                       by the bootstrap class loader
  [javadoc] -extdirs <dirlist>        Override location of installed 
extensions
  [javadoc] -verbose                  Output messages about what Javadoc 
is doing
  [javadoc] -locale <name>            Locale to be used, e.g. en_US or 
en_US_WIN
  [javadoc] -encoding <name>          Source file encoding name
  [javadoc] -J<flag>                  Pass <flag> directly to the 
runtime system
  [javadoc]
  [javadoc] 1 error

here is my target :

<target name="Generation de la documentation">
        <touch 
file="${rep.livraison}/${nom.rep.documentation}/package-list"/>
        <javadoc 
packageList="${rep.livraison}/${nom.rep.documentation}/package-list"
            packagenames="${env.PAQUETAGE}.*"
            sourcepath="${rep.livraison}/${nom.rep.src}"
            destdir="${rep.livraison}/${nom.rep.documentation}"
            classpathref="path.wt.doc"
            windowtitle="Documentation des Classes &amp; APIs de la 
customisation Windchill"
            doctitle="&lt;h1&gt;Documentation de ${env.PROJET} 
${env.VERSION}&lt;/h1&gt;&lt;BR&gt;&lt;IMG SRC=logo.jpg&gt;&lt;P&gt;"
            bottom="${copyright}">
            <doclet name="RTFDoclet"
                         path="${rep.livraison}/RTFDoclet/RTFDoclet.jar">
                <param name="-filename" 
value="${rep.livraison}/Documentation.rtf"/>
            </doclet>
            <group title="Paquetage de l'application ${env.PROJET}" 
packages="${env.PAQUETAGE}"/>
            <group title="Sous-paquetages de ${env.PROJET}" 
packages="${env.PAQUETAGE}.*"/>
            <link offline="true" 
href="file:\\${env.ANT_HOME}\build\javadocs" 
packagelistLoc="${env.ANT_HOME}\build\javadocs" />
            <link offline="true" href="${nom.rep.wtdoc}" 
packagelistLoc="${rep.codes}\wt\clients\library\api"/>
            <link offline="true" href="${nom.rep.javadoc}" 
packagelistLoc="${java.home}\docs\api" />
        </javadoc>
    </target>

Thank you very much...

Cyriaque,

-- 
Cyriaque Dupoirieux <mailto:Cyriaque.Dupoirieux@pcotech.fr>
PCO Technologies
Burolines - 2 ter rue Marcel Doret
31700 Blagnac
Tél : 05.34.60.44.13 - Fax : 05.34.60.44.10


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message