tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Update of "FAQ/Developing" by ChristopherSchultz
Date Thu, 05 Apr 2012 00:46:33 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "FAQ/Developing" page has been changed by ChristopherSchultz:
http://wiki.apache.org/tomcat/FAQ/Developing?action=diff&rev1=12&rev2=13

Comment:
Added "hacking with Eclipse" section

  This section of the FAQ discusses common questions related to Tomcat development.
  
  == Questions ==
+  1. [[#Hacking|Hacking]]
+    1. [[#Q5|How do I start hacking Tomcat in Eclipse?]]
   1. [[#Debugging|Debugging]]
     1. [[#Q1|How do I configure Tomcat to support remote debugging?]]
     1. [[#Q2|How do I remotely debug Tomcat using Eclipse?]]
@@ -11, +13 @@

   1. Other
     1. [[#Q4|How do I change the monitoring interval for modified resources and application
reloading?]]
  == Answers ==
+ 
+ === Hacking ===
+ 
+ <<Anchor(Q5)>>
+ ==== How do I start hacking Tomcat in Eclipse? ====
+ 
+ Briefly:
+ 
+ {{{
+ $ svn checkout http://svn.apache.org/repos/asf/tomcat/trunk
+   (or whatever branch you want: clearly, this would be better
+   to do directly from within Eclipse but it's easier to describe
+   as a command)
+ 
+ $ cd trunk
+ 
+ $ echo "base.path=/path/to/where/tomcat/can/put/its/3rd-party/libs" > build.properties
+ 
+ $ ant ide-eclipse
+ }}}
+ 
+ Then, in Eclipse, go to Preferences | Java/Build Path/Classpath Variables and set
+ the following variables:
+ 
+ {{{
+ ANT_HOME=path to your Ant install (where lib/ant.jar can be found)
+ TOMCAT_LIBS_BASE=[whatever you set base.path to above]
+ }}}
+ 
+ If you look in (project root)/res/ide-support/eclipse/java-compiler-errors-warnings.txt,
you'll see a set of compiler warnings and import organization rules that you will have to
set up manually in your project. If you set those up properly, you are more likely to submit
cleaner patches.
  
  === Debugging ===
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message