eclipse:eclipse adds sourcepath or javadocpath to .classpath but not both
-------------------------------------------------------------------------

                 Key: MPECLIPSE-121
                 URL: http://jira.codehaus.org/browse/MPECLIPSE-121
             Project: maven-eclipse-plugin
          Issue Type: Bug
         Environment: Windows XP
Maven 2.0.4
maven-eclipse-plugin 2.2
            Reporter: Edin Pezerovic


issuing a mvn eclipse:eclipse generates the .classpath file with either 
<attributes> tag within classpathentry or a sourcepath-attribute for the 
classpathentry, but never both. 
I think, the "else" in the code below is the bug and should be removed. (File 
EclipseClasspathWriter, Method addDependency)

......
        if ( sourcepath != null )
        {
            writer.addAttribute( ATTR_SOURCEPATH, sourcepath );
        }
        ELSE if ( javadocpath != null )
        {
            writer.startElement( "attributes" ); //$NON-NLS-1$

            writer.startElement( "attribute" ); //$NON-NLS-1$
            writer.addAttribute( "value", "jar:file:/" + javadocpath + "!/" ); 
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            writer.addAttribute( "name", "javadoc_location" ); //$NON-NLS-1$ 
//$NON-NLS-2$
            writer.endElement();

            writer.endElement();
        }
.....


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

        

Reply via email to