-
1. Re: Source path in build path libraries not retained
maxandersen Jan 31, 2008 6:34 PM (in response to ffreemarket)I don't follow you completely on what you do here.
could you write down the steps in a jira with what happens and what you expected....maybe use jinq or something similar to show the steps. -
2. Re: Source path in build path libraries not retained
freemarket Jan 31, 2008 11:06 PM (in response to ffreemarket)Hi,
Steps to follow:
in project explorer for your typical dynamic web project with jsf 1.2:
right click on project -> build path -> configure build path
in Properties dialog box:
pick Java Build Path
click on Libraries tab
pick a library - eg. SUN-RI (JSF library - user defined)
open library
open jar
click on source attachment
click on edit button
click on external folder and select directory path
click ok to save information
repeat above steps to verify source path to jar still exists.
Lo and behold, it has vanished, source attachment is back to (none).
This behavior exists for all JSF libraries that I have defined, eg.
iBatis, JSTL, richfaces, facelets. I know the source is correct for
when I am debugging a thread and I want to trace into facelets, I supply the directory path when prompted and can follow the thread into this body of code. The only library in which the source attachment does not seem to vanish is in the apache tomcat 6
libraries.
Hopefully that was clearer.
Regards,
Henry -
3. Re: Source path in build path libraries not retained
maxandersen Feb 1, 2008 3:28 AM (in response to ffreemarket)you bumped into https://bugs.eclipse.org/bugs/show_bug.cgi?id=202177
workaround: use normal user libraries if you want source attachments. -
4. Re: Source path in build path libraries not retained
freemarket Feb 1, 2008 9:37 AM (in response to ffreemarket)gotcha. I didn't think to look under eclipse's bugzilla only looked under jboss jira for 3rd party.
I'll try user libs.
Regards,
Henry -
5. Re: Source path in build path libraries not retained
mars1412 Feb 18, 2008 10:42 AM (in response to ffreemarket)sorry for my newbie question to this thread, but:
I need to attach source code for hibernate3.jar (to debug)
how can I do that?
in as stated above it's not directly possible (and in the Libraries tab of the Java Build Path, the Source attachment of hiberante3.jar is not modifiable)
so how can I attach a source code?
I also cannot remove the hibernate3.jar from the 'All JBoss Libraries' library.
So do I need to remove the complete library and add ALL included .jars to my project manually, just to get the source of one single .jar? -
6. Re: Source path in build path libraries not retained
maxandersen Mar 4, 2008 6:41 AM (in response to ffreemarket)For the moment yes....it sucks i now ,(
Alternatively you can just add a single entry for hibernate3.jar and have it duplicated. would not affect anything (unless you use a different version of the jar ,)