[ 
https://jira.codehaus.org/browse/JXR-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316472#comment-316472
 ] 

Michael Osipov commented on JXR-63:
-----------------------------------

No avail? A fix is very, very easy. Reuse AbstractJavadocMojo#getBottomText()

{code:java}
private String getBottomText()
    {
        int actualYear = Calendar.getInstance().get( Calendar.YEAR );
        String year = String.valueOf( actualYear );

        String inceptionYear = project.getInceptionYear();

        String theBottom = StringUtils.replace( this.bottom, "{currentYear}", 
year );

        if ( inceptionYear != null )
        {
            if ( inceptionYear.equals( year ) )
            {
                theBottom = StringUtils.replace( theBottom, "{inceptionYear}-", 
"" );
            }
            else
            {
                theBottom = StringUtils.replace( theBottom, "{inceptionYear}", 
inceptionYear );
            }
        }
        else
        {
            theBottom = StringUtils.replace( theBottom, "{inceptionYear}-", "" 
);
        }

        if ( project.getOrganization() == null )
        {
            theBottom = StringUtils.replace( theBottom, " {organizationName}", 
"" );
        }
        else
        {
            if ( StringUtils.isNotEmpty( project.getOrganization().getName() ) )
            {
                if ( StringUtils.isNotEmpty( project.getOrganization().getUrl() 
) )
                {
                    theBottom = StringUtils.replace( theBottom, 
"{organizationName}",
                                                     "<a href=\"" + 
project.getOrganization().getUrl() + "\">"
                                                         + 
project.getOrganization().getName() + "</a>" );
                }
                else
                {
                    theBottom =
                        StringUtils.replace( theBottom, "{organizationName}", 
project.getOrganization().getName() );
                }
            }
            else
            {
                theBottom = StringUtils.replace( theBottom, " 
{organizationName}", "" );
            }
        }

        return theBottom;
    }
{code}
                
> Bottom line in jxr report does not correspond to Javadoc style
> --------------------------------------------------------------
>
>                 Key: JXR-63
>                 URL: https://jira.codehaus.org/browse/JXR-63
>             Project: Maven JXR
>          Issue Type: Bug
>          Components: maven2 jxr plugin
>    Affects Versions: 2.1
>            Reporter: Michael Osipov
>
> I user JXR with Maven and produce Javadoc too.
> I've set:
> <inceptionYear>2004</inceptionYear>
> <organization>MyOrg</organization>
> <organizationUrl>http://www.somedomain.com</organizationUrl>
> What the JAvadoc plugin does for the javadoc report is, it creates a bottom 
> line like this:
> {code}
> Copyright &#169; 2004-2008 <a href="http://www.somedomain.com";>MyOrg</a>. All 
> Rights Reserved.
> {code}
> but what jxr produces is
> {code}
> Copyright &copy; 2004-2008 MyOrg. All Rights Reserved.
> {code}
> Because JXR tries to resemble javadoc, this bottom line should produce the 
> same ouput

--
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

        

Reply via email to