[ http://jira.codehaus.org/browse/MECLIPSE-143?page=all ]
Lukas Theussl moved MPECLIPSE-121 to MECLIPSE-143: -------------------------------------------------- Workflow: Maven New (was: jira) Key: MECLIPSE-143 (was: MPECLIPSE-121) Project: Maven 2.x Eclipse Plugin (was: maven-eclipse-plugin) > eclipse:eclipse adds sourcepath or javadocpath to .classpath but not both > ------------------------------------------------------------------------- > > Key: MECLIPSE-143 > URL: http://jira.codehaus.org/browse/MECLIPSE-143 > Project: Maven 2.x 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