Have a external tool run two commands - possible? [message #44349] |
Thu, 22 May 2003 13:53  |
Eclipse User |
|
|
|
Hi,
I'm running Windows, but later on I'll need this to work under Linux as well.
I won't to be able to invoke Tomcat from inside Eclipse.
However, we have a script (bat or bash depending on OS) that needs to be run
first to set the appropriate enviroment variables.
One solution would have been to set the enviroment for the specific external
tool (program), but Eclipse has no such options.
So, the other solution is to do as I did from within EditPlus:
"${workspace_loc:/project/init/wininit.bat}&
${workspace_loc:/project/tools/jakarta-tomcat-4.1.18/bin/sta rtup.bat} "
I've tried both specifying the whole string in the location and leting "& $..."
be the argument to wininit.bat.
None of them works. Is there a way or do I need to create yet another bat file?
Last, but not least. Since, I run external tools quite often, and it takes time
to go to the menu all the with mouse it would have been nice, I would like to
map them to keybindings. Is that not possible. I haven't been able to find it,
but I guess it's there somewhere.
Jimisola
|
|
|
Re: Have a external tool run two commands - possible? [message #44476 is a reply to message #44349] |
Thu, 22 May 2003 14:37  |
Eclipse User |
|
|
|
Originally posted by: jared-eclipse.mn.rr.com
Current integration builds in the 2.2/3.0 stream include an "Environment"
tab where you can define the environment that gets passed into
Runtime.exec(...).
- Jared
Jimisola Laursen wrote:
> Hi,
>
> I'm running Windows, but later on I'll need this to work under Linux as
> well.
>
> I won't to be able to invoke Tomcat from inside Eclipse.
> However, we have a script (bat or bash depending on OS) that needs to be
> run first to set the appropriate enviroment variables.
> One solution would have been to set the enviroment for the specific
> external tool (program), but Eclipse has no such options.
> So, the other solution is to do as I did from within EditPlus:
>
> "${workspace_loc:/project/init/wininit.bat}&
> ${workspace_loc:/project/tools/jakarta-tomcat-4.1.18/bin/sta rtup.bat} "
>
> I've tried both specifying the whole string in the location and leting "&
> $..." be the argument to wininit.bat.
> None of them works. Is there a way or do I need to create yet another bat
> file?
>
> Last, but not least. Since, I run external tools quite often, and it takes
> time
> to go to the menu all the with mouse it would have been nice, I would
> like to map them to keybindings. Is that not possible. I haven't been able
> to find it, but I guess it's there somewhere.
>
> Jimisola
|
|
|
Powered by
FUDForum. Page generated in 0.07590 seconds