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

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Wed Apr 17 01:16:55 EDT 2013


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

Max Rydahl Andersen commented on JBIDE-14003:
---------------------------------------------

That truly sucks if sourcepath can't use variables [1] - this also means we are forced to hardwire hardcoded paths into data that is potentially shared with others - which in the case of non-maven projects is very likely since there is no other way of sharing the basic setup.

I would really like to be able to have this feature enabled by default, but we can't do that with its current workflow (it injects hardcoded paths into files that are most likely shared with a team).

Could we show a dialog when the match is found and let the user be aware what happend/is about to happen ?

Something like:

Title: Found source jar for 'jarname'

Text: 'jarname' is missing a valid source attachement. Found a a match at <name/path of where it is found (remote or local)>.
Do you want to use this as source for 'jarname' ?

Warning: this will add a machine specific path to your classpath settings. 

[ ] remember my decision for other jars    [Always] [Yes] [No] 

No - nothing is done.
Yes - add, but ask next time again 
Always - just do it.

WDYT ?

[1] http://stackoverflow.com/questions/9286074/using-variables-for-source-attachments-in-eclipse
                
> 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