|
Re: Using Tomcat 6 Source ZIP in Eclipse SDK 3.3.0 Project [message #201032 is a reply to message #200958] |
Tue, 02 October 2007 13:10   |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
There's no automatic way other than the "Attach Source..." button that
appears when a class file is opened without source. You can add source
paths to the server's launch configuration in Run -> Open Debug Dialog.
However, the viewer that opens for those source files can be used to
set breakpoints, but doesn't display the breakpoint markers. If you
attach source to the jars, the breakpoint markers do appear.
Fortunately in Tomcat 6.0, all of the source is under a single folder in
the zip. You just have to expand the zip and copy that folder's path to
the source attachment setting of each jar to which it applies, which is
most of them. Also, WTP 2.0 is able to remember these settings in each
server runtime in a workspace. If you create another project with the
same runtime, that project should automatically pick up the source
attachments for those jars.
Cheers,
Larry
John wrote:
> I would like to use the apache-tomcat-6.0.14-src.zip file for viewing
> sources.
>
>
>
> I have a Dynamic Web Project which in the Java Build Path -> Libraries has
>
> Apache Tomcat v6.0 [Apache Tomcat v6.0]
>
>
>
> I've download the source archive
>
> apache-tomcat-6.0.14-src.zip to C:\Tomcat-6.0\
>
>
>
> I know that you can use Source Attachment to attach the source archive to
> each jar of Apache Tomcat v6.0. However, there are a lot of jars to attach
> source to.
>
>
>
> Is there an easy way to specify apache-tomcat-6.0.14-src.zip and have it
> attached automatically to each of the jars of the Apache Tomcat v6.0 library
> entry?
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02274 seconds