You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "zosrothko (JIRA)" <ji...@codehaus.org> on 2011/10/11 22:19:09 UTC

[jira] Created: (MJAVADOC-332) outputDirectory is not honored as it should, but valuated to destDir.

outputDirectory is not honored as it should, but valuated to destDir.
---------------------------------------------------------------------

                 Key: MJAVADOC-332
                 URL: https://jira.codehaus.org/browse/MJAVADOC-332
             Project: Maven 2.x Javadoc Plugin
          Issue Type: Bug
    Affects Versions: 2.8
         Environment: WXP SP3 JDK 1.6.0_26 Maven 3.0
            Reporter: zosrothko


Hi

The outputDirectory is referencing ${destDir} instead of ${outputDirectory} as per following snippet extracted from AbstractJavadocMojo.java

    /**
     * Specifies the destination directory where javadoc saves the generated HTML files.
     * <br/>
     * See <a href="http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>.
     * <br/>
     *
     * @parameter expression="${destDir}" alias="destDir" default-alue="${project.build.directory}/apidocs"
     * @required
     */
    protected File outputDirectory;


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAVADOC-332) outputDirectory is not honored as it should, but valuated to destDir.

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281150#comment-281150 ] 

Dennis Lundberg commented on MJAVADOC-332:
------------------------------------------

I'm not sure what it is that you want.

The alias="destDir" indicates that this parameter has been renamed from "destDir" to "outputDirectory". The alias makes it possible to keep the old name of the parameter for backwards compatibility.

The expression="${destDir}" part means that if you want to specify this parameter on the command line you should use the syntax:
  -DdestDir=my/chosen/path


> outputDirectory is not honored as it should, but valuated to destDir.
> ---------------------------------------------------------------------
>
>                 Key: MJAVADOC-332
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-332
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: WXP SP3 JDK 1.6.0_26 Maven 3.0
>            Reporter: zosrothko
>
> Hi
> The outputDirectory is referencing ${destDir} instead of ${outputDirectory} as per following snippet extracted from AbstractJavadocMojo.java
>     /**
>      * Specifies the destination directory where javadoc saves the generated HTML files.
>      * <br/>
>      * See <a href="http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>.
>      * <br/>
>      *
>      * @parameter expression="${destDir}" alias="destDir" default-alue="${project.build.directory}/apidocs"
>      * @required
>      */
>     protected File outputDirectory;

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MJAVADOC-332) outputDirectory is not honored as it should, but valuated to destDir.

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MJAVADOC-332.
----------------------------------

    Resolution: Not A Bug
      Assignee: Herve Boutemy

when deploying the site, you'll get what you expect
it's normal that the site has this "problem" at build time
                
> outputDirectory is not honored as it should, but valuated to destDir.
> ---------------------------------------------------------------------
>
>                 Key: MJAVADOC-332
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-332
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: WXP SP3 JDK 1.6.0_26 Maven 3.0
>            Reporter: zosrothko
>            Assignee: Herve Boutemy
>
> Hi
> The outputDirectory is referencing ${destDir} instead of ${outputDirectory} as per following snippet extracted from AbstractJavadocMojo.java
>     /**
>      * Specifies the destination directory where javadoc saves the generated HTML files.
>      * <br/>
>      * See <a href="http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>.
>      * <br/>
>      *
>      * @parameter expression="${destDir}" alias="destDir" default-alue="${project.build.directory}/apidocs"
>      * @required
>      */
>     protected File outputDirectory;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAVADOC-332) outputDirectory is not honored as it should, but valuated to destDir.

Posted by "zosrothko (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281202#comment-281202 ] 

zosrothko commented on MJAVADOC-332:
------------------------------------

With this configuration
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.7</version>
        <!-- 
        <executions>
          <execution>
            <id>aggregate</id>
            <goals>
              <goal>aggregate</goal>
            </goals>
            <phase>site</phase>
           </execution>
         </executions>
         -->
         <configuration>
        	<outputDirectory>${basedir}</outputDirectory>
        	<destDir>api</destDir>
        </configuration>
      </plugin>

then outputDir is totally ignored while destDir redirects to target/site/apidocs/api

as view in the log
Constructing Javadoc information...
Standard Doclet version 1.6.0_24
Building tree for all the packages and classes...
Generating C:/Documents and Settings/C59FAND/Mes documents/g37idn/asm/target/site/apidocs/api\test/\Edition.html...


With such configuration, i am expecting that the javadoc be produced in
Generating C:/Documents and Settings/C59FAND/Mes documents/g37idn/asm/api


> outputDirectory is not honored as it should, but valuated to destDir.
> ---------------------------------------------------------------------
>
>                 Key: MJAVADOC-332
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-332
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: WXP SP3 JDK 1.6.0_26 Maven 3.0
>            Reporter: zosrothko
>
> Hi
> The outputDirectory is referencing ${destDir} instead of ${outputDirectory} as per following snippet extracted from AbstractJavadocMojo.java
>     /**
>      * Specifies the destination directory where javadoc saves the generated HTML files.
>      * <br/>
>      * See <a href="http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>.
>      * <br/>
>      *
>      * @parameter expression="${destDir}" alias="destDir" default-alue="${project.build.directory}/apidocs"
>      * @required
>      */
>     protected File outputDirectory;

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MJAVADOC-332) outputDirectory is not honored as it should, but valuated to destDir.

Posted by "Paolo Compieta (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293626#comment-293626 ] 

Paolo Compieta commented on MJAVADOC-332:
-----------------------------------------

Happens also on Ubuntu:
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-32-generic", arch: "amd64", family: "unix"
                
> outputDirectory is not honored as it should, but valuated to destDir.
> ---------------------------------------------------------------------
>
>                 Key: MJAVADOC-332
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-332
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: WXP SP3 JDK 1.6.0_26 Maven 3.0
>            Reporter: zosrothko
>
> Hi
> The outputDirectory is referencing ${destDir} instead of ${outputDirectory} as per following snippet extracted from AbstractJavadocMojo.java
>     /**
>      * Specifies the destination directory where javadoc saves the generated HTML files.
>      * <br/>
>      * See <a href="http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>.
>      * <br/>
>      *
>      * @parameter expression="${destDir}" alias="destDir" default-alue="${project.build.directory}/apidocs"
>      * @required
>      */
>     protected File outputDirectory;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MJAVADOC-332) outputDirectory is not honored as it should, but valuated to destDir.

Posted by "Federico Pugnali (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298023#comment-298023 ] 

Federico Pugnali commented on MJAVADOC-332:
-------------------------------------------

The workaround (or the right way to do it) is include also

<reportOutputDirectory>${basedir}</reportOutputDirectory>


                
> outputDirectory is not honored as it should, but valuated to destDir.
> ---------------------------------------------------------------------
>
>                 Key: MJAVADOC-332
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-332
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: WXP SP3 JDK 1.6.0_26 Maven 3.0
>            Reporter: zosrothko
>
> Hi
> The outputDirectory is referencing ${destDir} instead of ${outputDirectory} as per following snippet extracted from AbstractJavadocMojo.java
>     /**
>      * Specifies the destination directory where javadoc saves the generated HTML files.
>      * <br/>
>      * See <a href="http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>.
>      * <br/>
>      *
>      * @parameter expression="${destDir}" alias="destDir" default-alue="${project.build.directory}/apidocs"
>      * @required
>      */
>     protected File outputDirectory;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAVADOC-332) outputDirectory is not honored as it should, but valuated to destDir.

Posted by "zosrothko (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281184#comment-281184 ] 

zosrothko commented on MJAVADOC-332:
------------------------------------

What I want is to put the directory where are generated the javadocs outside the target/site directory and none of the outpuDirectory ot destDist parameters let me do so. It is like the kink option that always produces an ablsolute file while it should be relative if it has beeing specified as relative.

As exemple

with 
					<destDir>api/als</destDir>
					<detectLinks>true</detectLinks>
					<links>
						<link>../asn</link>
						<link>../ugn</link>
					</links>

the plugin generates link as below

D:/OSI/iso.itu.osi.als/target/site/apidocs/api/als\../asn/package-list

which is not what I am expecting since the asn/package-list will never located under the target site/apidocs/als directory...

IMHO, all path should be relative to the expressed outputDirectory where anyone can put its own link referrals.

> outputDirectory is not honored as it should, but valuated to destDir.
> ---------------------------------------------------------------------
>
>                 Key: MJAVADOC-332
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-332
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: WXP SP3 JDK 1.6.0_26 Maven 3.0
>            Reporter: zosrothko
>
> Hi
> The outputDirectory is referencing ${destDir} instead of ${outputDirectory} as per following snippet extracted from AbstractJavadocMojo.java
>     /**
>      * Specifies the destination directory where javadoc saves the generated HTML files.
>      * <br/>
>      * See <a href="http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>.
>      * <br/>
>      *
>      * @parameter expression="${destDir}" alias="destDir" default-alue="${project.build.directory}/apidocs"
>      * @required
>      */
>     protected File outputDirectory;

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira