Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » executing command line
executing command line [message #287849] Thu, 07 July 2005 10:47 Go to next message
Eclipse UserFriend
Originally posted by: fayezur.rahman.gmail.com

Hi Experts,
I need to execute command line from a plug in. I think following code is
one way of doing it but I can't figure out how to get ILaunch

Process p = DebugPlugin(commandLine, workingDirectory);
ILaunch launch = ___________________________________________?
IProcess process = DebugPlugin.newProcess(launch,p,"My OWN");
IStreamsProxy iStreamProxy = process.getStreamsProxy();
IStreamMonitor errorMonitor = iStreamProxy.getErrorStreamMonitor();

for example the command line could be an array containing "gcc FileName"
or anything of that nature. Can someone please help me to fill in the
blank or just suggest anyother way of doing it.

Thanks in advance
Raman
Re: executing command line [message #288113 is a reply to message #287849] Tue, 12 July 2005 11:18 Go to previous messageGo to next message
Eclipse UserFriend
new org.eclipse.debug.core.Launch(null, ILaunch.RUN, null);

Darin

"F. Rahman" <fayezur.rahman@gmail.com> wrote in message
news:8b7b1169bb050f5f7f2e72195a0aa634$1@www.eclipse.org...
> Hi Experts,
> I need to execute command line from a plug in. I think following code is
> one way of doing it but I can't figure out how to get ILaunch
>
> Process p = DebugPlugin(commandLine, workingDirectory);
> ILaunch launch = ___________________________________________?
> IProcess process = DebugPlugin.newProcess(launch,p,"My OWN");
> IStreamsProxy iStreamProxy = process.getStreamsProxy();
> IStreamMonitor errorMonitor = iStreamProxy.getErrorStreamMonitor();
>
> for example the command line could be an array containing "gcc FileName"
> or anything of that nature. Can someone please help me to fill in the
> blank or just suggest anyother way of doing it.
>
> Thanks in advance
> Raman
>
Re: executing command line [message #288555 is a reply to message #288113] Tue, 19 July 2005 13:55 Go to previous message
Eclipse UserFriend
Originally posted by: kruttik.a.tcs.com

Hi ,
I have the same requirement.
I am able to run the commmands from command line
but i also want the standard output to be shown in the default
Console View, or if not possible suggest me a way to
show the standard output in som eother view.
Previous Topic:3.0.2 Your current config contains errors?
Next Topic:How to run a command from code
Goto Forum:
  


Current Time: Tue Jul 22 09:03:54 EDT 2025

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

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

Back to the top