Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Have a external tool run two commands - possible?
Have a external tool run two commands - possible? [message #44349] Thu, 22 May 2003 13:53 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:PropertyChangeEvent event not consistent when passing values for preference
Next Topic:Plug-in specified entries
Goto Forum:
  


Current Time: Thu Jul 17 02:05:58 EDT 2025

Powered by FUDForum. Page generated in 0.03279 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top