Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Using Tomcat 6 Source ZIP in Eclipse SDK 3.3.0 Project
Using Tomcat 6 Source ZIP in Eclipse SDK 3.3.0 Project [message #200958] Tue, 02 October 2007 02:42 Go to next message
Eclipse UserFriend
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?
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 09:10 Go to previous messageGo to next message
Eclipse UserFriend
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?
>
>
Thank you for feedback [message #201055 is a reply to message #201032] Tue, 02 October 2007 10:25 Go to previous message
Eclipse UserFriend
Larry - Thank you for the feedback.
Previous Topic:out of memory with 2.0.1
Next Topic:Importing MyEclipse Projects
Goto Forum:
  


Current Time: Sat Apr 26 00:33:56 EDT 2025

Powered by FUDForum. Page generated in 0.03188 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top