The way I've been doing it to set the env. vars used by ant to point to the same installation of Tomcat I have the Eclipse plugin pointed to. Those can be defined something like this:-Denv.TOMCAT_HOME=${workspace_loc}/apache-tomcat-6.0.20
-Denv.APP_TOMCAT_HOME=${workspace_loc}/apache-tomcat-6.0.20
I used an Eclipse external ant builder pointing to Alfresco source build.xml and installed the Tomcat tree into my local workspace as a project - hence the ${workspace_loc} Eclipse var. I'm also using tomcat 6.0.20. You would replace {workspace_loc}/apache-tomcat-6.0.20 with the path to Tomcat root. The environment vars can be set directly on the ant external tool definition or you can set them globally. I)Then I run the the default ant target (build-tomcat) and it will compile the source tree, generate the alfresco.war and share.war and deploy these to your Tomcat install. I typically only do this once in the beginning of a project and then work out the shared directory classpath for extensions, etc.In the Tomcat plugin JVM settings I have the following for a Gentoo Linux system (Core2-duo 4gb RAM):-server -Xss1024K -Xms1G -Xmx2G -XX:MaxPermSize=128M -XX:NewSize=512m
-Denv.TOMCAT_HOME=<tomcat_root>
-Denv.APP_TOMCAT_HOME=<tomcat_root>
-Denv.alfresco.home=<tomcat_root>
Where <tomcat_root> is replaced with the full path to where you installed Tomcat and referenced it in the top level Tomcat settings. Note: AFAIK the Tomcat plugin does not expand Eclipse variables as you may be used to in other configuration dialogs.Under the Classpath (before generated classpath) settings point to the <tomcat_root>/shared/classes directory. This is where extensions can be placed such as alfresco-global.properties and other configuration customizations.Once those are there you can run Tomcat from the Eclipse plugin (little icons in your toolbar). Alfresco and share should expand and begin bootstrapping the db, etc. Keep in mind you can customize the database and alf_root settings by placing a file in <tomcat_root>/shared/classes/alfresco-global.properties with the overrides.YMMV on the memory settings. I've converged on those via trial and error and reading other posts in the forums.Hopefully this makes sense. Cheers,-Jeff SimpsonZia Consulting, Inc