[jbosstools-issues] [JBoss JIRA] (JBIDE-14003) Automatically discover library sources for non-maven projects

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Mon May 13 17:09:06 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-14003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773934#comment-12773934 ] 

Snjezana Peco commented on JBIDE-14003:
---------------------------------------

{quote}
'jarname' should show the original jar name
{quote}

Fixed.

{quote}
I think the message should somehow emphasize a non-portable path will be used to store the source attachment link.
{quote}

Max has proposed that message.

{quote}
there are no workspace prefs that'd allow a user to turn that feature on/off
{quote}

Windows>Preferences>JBoss Tools>Source Lookup>Automatically configure the Java Source Attachment

"Prompt" is the default. 

{quote}
I haven't tried / checked if the code works on classpath containers. If it does, then the Maven container should be ignored to prevent collisions (use hard coded links when m2e can do better)
{quote}

The code works for classpath containers. 
Re the Maven container, m2e also uses hardcoded paths. However, source attachments for the Maven container aren't saved in the workspace (.classpath), but in the m2e.jdt plugin instance area. The Source Lookup plugin works the same way.
The Source Lookup plugin will additionally check whether a source attachment file exists and, if it doesn't exist, will try to  download it again. M2e ignores invalid source attachments. If m2e has added a valid source attachment, the Source Lookup plugin won't do anything.




                
> Automatically discover library sources for non-maven projects
> -------------------------------------------------------------
>
>                 Key: JBIDE-14003
>                 URL: https://issues.jboss.org/browse/JBIDE-14003
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: maven
>    Affects Versions: 4.1.0.Alpha1
>            Reporter: Fred Bricon
>            Assignee: Snjezana Peco
>             Fix For: 4.1.0.Beta1
>
>         Attachments: test13848a.zip
>
>
> As a follow up of JBIDE-13848, enable automatic discovery of library sources for non-maven projects.
> * This feature should be turned on/off in the preferences
> * If the source file referenced in .classpath doesn't exist, it should attempt to discover a new, valid one.

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


More information about the jbosstools-issues mailing list