Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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
a is currently offline a
Messages: 75
Registered: July 2009
Member
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
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
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?
>
>
Thank you for feedback [message #201055 is a reply to message #201032] Tue, 02 October 2007 10:25 Go to previous message
a is currently offline a
Messages: 75
Registered: July 2009
Member
Larry - Thank you for the feedback.
Previous Topic:out of memory with 2.0.1
Next Topic:Importing MyEclipse Projects
Goto Forum:
  


Current Time: Fri Aug 22 00:15:29 EDT 2014

Powered by FUDForum. Page generated in 0.06318 seconds