You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2007/11/30 04:57:02 UTC
[jira] Updated: (MECLIPSE-143) eclipse:eclipse adds sourcepath or
javadocpath to .classpath but not both
[ http://jira.codehaus.org/browse/MECLIPSE-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arnaud Heritier updated MECLIPSE-143:
-------------------------------------
Component/s: Dependencies resolution and build path
> 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
> Components: Dependencies resolution and build path
> Environment: Windows XP
> Maven 2.0.4
> maven-eclipse-plugin 2.2
> Reporter: Edin Pezerovic
> Assignee: Kenney Westerhof
>
> 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