You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by th...@bnpparibas.com on 2004/02/03 15:50:47 UTC

How to add a directory to javadoc source path

Hello,

I use JavaCC, so I generate java files in target/src-parser
When I generate the javadoc (maven javadoc:generate), there are only files
form src/java

I've found in the javadoc plugin source doc that the only way to do this
without modifiing the plugin or writing my own plugin is to modify
${pom.build.sourceModifications}

Here is what I've done in my maven.xml, it doesn't works :

  <preGoal name="maven-javadoc-plugin:report" >
        <ant:path id="gen.src.set">
            <pathelement location="${parser.java.src}"/>
        </ant:path>
        <maven:addPath id="pom.build.sourceModifications" refid="gen.src.set"/>
    </preGoal>

Here is the source of the plugin
http://cvs.apache.org/viewcvs.cgi/maven-plugins/javadoc/plugin.jelly

<ant:javadoc
        packagenames="${pom.package}.*"
        destdir="${maven.javadoc.destdir}"
        author="${maven.javadoc.author}"
        public="${maven.javadoc.public}"
        package="${maven.javadoc.package}"
        private="${maven.javadoc.private}"
        version="${maven.javadoc.version}"
        use="${maven.javadoc.use}"
        windowtitle="${maven.javadoc.windowtitle}"
        doctitle="${maven.javadoc.windowtitle}"
        bottom="${copyright}"
        stylesheetfile="${maven.javadoc.stylesheet}"
        additionalparam="${maven.javadoc.additionalparam}"
        useexternalfile="${maven.javadoc.useexternalfile}">

        <ant:fileset dir="${pom.build.sourceDirectory}">
          <ant:include name="**/*.java"/>
          <!-- FIXME: This is a bad cut and paste -->
          <!-- handle source modifications -->
          <j:forEach var="sm" items="${pom.build.sourceModifications}">
            <ant:available property="classPresent" classname="${sm.className}"/>
            <j:if test="${classPresent != 'true'}">
              <j:forEach var="exclude" items="${sm.excludes}">
                <ant:exclude name="${exclude}"/>
              </j:forEach>
              <j:forEach var="include" items="${sm.includes}">
                <ant:include name="${include}"/>
              </j:forEach>
            </j:if>
          </j:forEach>
        </ant:fileset>

Thanks for help !





This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org