From a0b1a28bf298a769605a8f3b333d22adc76b82ce Mon Sep 17 00:00:00 2001
From: timw
-NOTE: You must complete all the above steps to fetch -dependency libraries and build Tomcat before you can setup an Eclipse project and start -using it. -
-NOTE: This will not let you build everything under Eclipse; the build process requires use of Ant for the many stages that aren't simple Java compilations. @@ -174,19 +169,19 @@ get warnings, reformat code, perform refactorings, run Tomcat under the IDE, and so on.
-Complete the download of all third party dependencies required to compile the Tomcat
-source in Eclipse:
+Sample Eclipse project files and launch targets are provided in the
+res/ide-support/eclipse directory of the source tree.
+The instructions below will automatically copy these into the required locations.
+
+An Ant target is provided as a convenience to download all binary dependencies, and to create
+the Eclipse project and classpath files in the root of the source tree.
cd ${tomcat.source}
- ant extras
+ ant ide-eclipse
-Sample Eclipse project and classpath files are provided in the root directory of the source tree.
-The sample files are named eclipse.project and eclipse.classpath, and must
-be copied to .project and .classpath respectively before proceeding.
-
Start Eclipse and create a new Workspace. @@ -212,21 +207,30 @@ and import the Tomcat project located there.
-You may see errors in your problems tab at this point about missing build path dependencies.
-If this happens you have forgotten to execute the ant extras build to download
-these dependencies.
-
-Start Tomcat and Stop Tomcat launch configurations are provided in the
-root directory of the source tree and will be available in the Run->Run Configurations
-dialog. Use these to start and stop Tomcat from Eclipse.
+start-tomcat and stop-tomcat launch configurations are provided in
+res/ide-support/eclipse and will be available in the Run->Run Configurations
+dialog. Use these to start and stop Tomcat from Eclipse.
If you want to configure these yourself (or are using a different IDE)
then use org.apache.catalina.startup.Bootstrap as the main class,
-start/stop as program arguments, and specify -Dcatalina.home=...
+start/stop etc. as program arguments, and specify -Dcatalina.home=...
(with the name of your build directory) as VM arguments.
+Tweaking a few formatting preferences will make it much easier to keep consistent with Tomcat +coding conventions (and have your contributions accepted): +
++
| Java -> Code Style -> Formatter -> Edit... | +Tab policy: Spaces only Tab and Indentation size: 4 |
| General -> Editors -> Text Editors | +Displayed tab width: 2 Insert spaces for tabs Show whitespace characters (optional) |
| XML -> XML Files -> Editor | Indent using spaces Indentation size: 2 |
| Ant -> Editor -> Formatter | Tab size: 2 Use tab character instead of spaces: unchecked |