You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Wendy Smoak (JIRA)" <ji...@codehaus.org> on 2006/01/15 06:19:01 UTC

[jira] Created: (MJAVADOC-47) Javadoc plugin ignores destDir when used in reporting section

Javadoc plugin ignores destDir when used in reporting section
-------------------------------------------------------------

         Key: MJAVADOC-47
         URL: http://jira.codehaus.org/browse/MJAVADOC-47
     Project: Maven 2.x Javadoc Plugin
        Type: Bug

    Reporter: Wendy Smoak


When used in the reporting section of the pom and 'mvn site', output always goes to target/apidocs, even if you specify an outputDir.  

Having outputDir work correctly would by useful with alternate doclets, for example sending the output of the UMLGraph doclet to target/uml so that it can be further transformed.

This seems to be the code that's doing it:
        if ( !javadocDirectory.getAbsolutePath().equals( getOutputDirectory() ) )
        {
            // we're in site-embedded report mode, so Doxia has set the
            // reportOutputDirectory to the basedir of the site.
            // Append 'apidocs'.
            javadocDirectory = new File( javadocDirectory, "apidocs" );
        }


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MJAVADOC-47) Javadoc plugin ignores destDir when used in reporting section

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-47?page=comments#action_55897 ] 

Wendy Smoak commented on MJAVADOC-47:
-------------------------------------

Sorry.  No idea where I got 'outputDir'.  The title is correct, I'm specifying 'destDir' :
<configuration>
   ...
   <destDir>target/uml</destDir>
</configuration>
and it is ignored when used within the <reporting> section.  It works fine in the normal <build><plugins><plugin>... section.

There is a complete example of my configuration in the patch for MJAVADOC-46.

> Javadoc plugin ignores destDir when used in reporting section
> -------------------------------------------------------------
>
>          Key: MJAVADOC-47
>          URL: http://jira.codehaus.org/browse/MJAVADOC-47
>      Project: Maven 2.x Javadoc Plugin
>         Type: Bug

>     Reporter: Wendy Smoak

>
>
> When used in the reporting section of the pom and 'mvn site', output always goes to target/apidocs, even if you specify an outputDir.  
> Having outputDir work correctly would by useful with alternate doclets, for example sending the output of the UMLGraph doclet to target/uml so that it can be further transformed.
> This seems to be the code that's doing it:
>         if ( !javadocDirectory.getAbsolutePath().equals( getOutputDirectory() ) )
>         {
>             // we're in site-embedded report mode, so Doxia has set the
>             // reportOutputDirectory to the basedir of the site.
>             // Append 'apidocs'.
>             javadocDirectory = new File( javadocDirectory, "apidocs" );
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (MJAVADOC-47) Javadoc plugin ignores destDir when used in reporting section

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-47?page=all ]

Maria Odea Ching updated MJAVADOC-47:
-------------------------------------

    Attachment: MJAVADOC-47-maven-javadoc-plugin.patch

> Javadoc plugin ignores destDir when used in reporting section
> -------------------------------------------------------------
>
>          Key: MJAVADOC-47
>          URL: http://jira.codehaus.org/browse/MJAVADOC-47
>      Project: Maven 2.x Javadoc Plugin
>         Type: Bug

>     Reporter: Wendy Smoak
>     Assignee: Maria Odea Ching
>      Fix For: 2.0-beta-4
>  Attachments: MJAVADOC-47-maven-javadoc-plugin.patch
>
>
> When used in the reporting section of the pom and 'mvn site', output always goes to target/apidocs, even if you specify an outputDir.  
> Having outputDir work correctly would by useful with alternate doclets, for example sending the output of the UMLGraph doclet to target/uml so that it can be further transformed.
> This seems to be the code that's doing it:
>         if ( !javadocDirectory.getAbsolutePath().equals( getOutputDirectory() ) )
>         {
>             // we're in site-embedded report mode, so Doxia has set the
>             // reportOutputDirectory to the basedir of the site.
>             // Append 'apidocs'.
>             javadocDirectory = new File( javadocDirectory, "apidocs" );
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (MJAVADOC-47) Javadoc plugin ignores destDir when used in reporting section

Posted by "Allan Ramirez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-47?page=all ]
     
Allan Ramirez closed MJAVADOC-47:
---------------------------------

    Resolution: Fixed

Applied Patch. Thanks

> Javadoc plugin ignores destDir when used in reporting section
> -------------------------------------------------------------
>
>          Key: MJAVADOC-47
>          URL: http://jira.codehaus.org/browse/MJAVADOC-47
>      Project: Maven 2.x Javadoc Plugin
>         Type: Bug

>     Reporter: Wendy Smoak
>     Assignee: Maria Odea Ching
>      Fix For: 2.0-beta-4
>  Attachments: MJAVADOC-47-maven-javadoc-plugin.patch
>
>
> When used in the reporting section of the pom and 'mvn site', output always goes to target/apidocs, even if you specify an outputDir.  
> Having outputDir work correctly would by useful with alternate doclets, for example sending the output of the UMLGraph doclet to target/uml so that it can be further transformed.
> This seems to be the code that's doing it:
>         if ( !javadocDirectory.getAbsolutePath().equals( getOutputDirectory() ) )
>         {
>             // we're in site-embedded report mode, so Doxia has set the
>             // reportOutputDirectory to the basedir of the site.
>             // Append 'apidocs'.
>             javadocDirectory = new File( javadocDirectory, "apidocs" );
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (MJAVADOC-47) Javadoc plugin ignores destDir when used in reporting section

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-47?page=all ]

Brett Porter updated MJAVADOC-47:
---------------------------------

    Fix Version: 2.0

> Javadoc plugin ignores destDir when used in reporting section
> -------------------------------------------------------------
>
>          Key: MJAVADOC-47
>          URL: http://jira.codehaus.org/browse/MJAVADOC-47
>      Project: Maven 2.x Javadoc Plugin
>         Type: Bug

>     Reporter: Wendy Smoak
>      Fix For: 2.0

>
>
> When used in the reporting section of the pom and 'mvn site', output always goes to target/apidocs, even if you specify an outputDir.  
> Having outputDir work correctly would by useful with alternate doclets, for example sending the output of the UMLGraph doclet to target/uml so that it can be further transformed.
> This seems to be the code that's doing it:
>         if ( !javadocDirectory.getAbsolutePath().equals( getOutputDirectory() ) )
>         {
>             // we're in site-embedded report mode, so Doxia has set the
>             // reportOutputDirectory to the basedir of the site.
>             // Append 'apidocs'.
>             javadocDirectory = new File( javadocDirectory, "apidocs" );
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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