André, Chris and Neven,
Sorry for the late response. Got stuck on other project and just come back now to read all your awesome helpful advices! Neven, I got to try your "pseudocode". They are really detailed written and well explained. A little bit extra trouble in my situation is that I need to test the Java project with different version of Eclipses; hence, with different setting of Tomcat within the Eclipse (not a choice of mine) But with all your help I should be more than half way there. Thank you and you all have a good weekend! Truly, Shawn On Fri, Aug 22, 2014 at 2:07 PM, Neven Cvetkovic <neven.cvetko...@gmail.com> wrote: > Chris, > > > On Fri, Aug 22, 2014 at 4:50 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> >> So just write a batch script that looks like this: >> >> @ECHO OFF >> SET CATALINA_BASE=whatever >> SET CATALINA_HOME=whatever >> >> CALL %CATALINA_HOME%\bin\catalina.sh start >> > > You meant of course: CALL %CATALINA_HOME%\bin\catalina.bat start > > (Windows catalina.bat, Linux/Mac catalina.sh) > > >> >> Name it tomcat-start-environmentX.bat and create one for each >> environment. If you want to be able to start/stop them, etc. then you >> can use bin\startup.bat for an example of how to copy command-line >> arguments from the current script and pass them to another (hint: it's >> not as easy as it is in a *NIX shell). >> >> I wouldn't ever recommend setting CATALINA_HOME and CATALINA_BASE >> globally. If you want to use multiple environments without installing >> a Windows Servics or writing your own wrappers, etc. then you *must* >> use the environment variables to control where Tomcat looks for things. >> >> > +1 Agreed - that's what I suggested as well - do not set up these > environment variables globally, just set them in your startup script for > that execution only. > > Btw, the only variables that I set up globally on my system are JAVA_HOME > and PATH, since I use them for other purposes, too - not just starting up > Tomcat instances. It's useful to have %JAVA_HOME%\bin on your %Path% (as > the first thing in the list, before %SystemRoot% and other windows default > paths). > > Cheers! > Neven --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org