execute arbitrary scripts [message #2630] |
Tue, 15 May 2007 15:00 |
Eclipse User |
|
|
|
Originally posted by: jgangemi.yahoo.com
hello all -
after an extended hiatus, i have resumed work on the perl
implementation that i was previously working on.
i'm looking for a way to execute arbititrary scripts to perform
actions - this would be akind to looking up the interpreter library
path. i see that i can get the InterpreterInstallType from the
ScriptRuntime (to get the correct interpreter location) and then i
could use Debug.exec in order to execute the script, but was wondering
if there was a more 'official' way.
thx!
-jae
|
|
|
Re: execute arbitrary scripts [message #2658 is a reply to message #2630] |
Wed, 16 May 2007 05:24 |
Eclipse User |
|
|
|
Originally posted by: mikhail.kalugin.xored.com
Hi,
You can fetch IInterpreterRunner from IInterpreterInstall object and
than use run() method. It requires launch configuration and so on. So
it's not a very comfort way. But there is no other official way, except
fetching IInterpreterInstall and launching using DebugPlugin.exec().
--
Mikhail Kalugin
Jae Gangemi wrote:
> hello all -
>
> after an extended hiatus, i have resumed work on the perl
> implementation that i was previously working on.
>
> i'm looking for a way to execute arbititrary scripts to perform actions
> - this would be akind to looking up the interpreter library path. i see
> that i can get the InterpreterInstallType from the ScriptRuntime (to get
> the correct interpreter location) and then i could use Debug.exec in
> order to execute the script, but was wondering if there was a more
> 'official' way.
>
> thx!
>
> -jae
>
|
|
|
Re: execute arbitrary scripts [message #2687 is a reply to message #2658] |
Wed, 16 May 2007 13:30 |
Eclipse User |
|
|
|
Originally posted by: jgangemi.yahoo.com
yeah - the latter way seems best since i'm not interested in having
the user execute the script - it would be invoked by an action, etc to
perform some other type of action (format code using external script,
etc).
i'll keep the implementation generic and submit a patch once i get
things working so others may benefit.
thanks!
-jae
On 2007-05-16 01:24:01 -0400, Mikhail Kalugin <mikhail.kalugin@xored.com> said:
> Hi,
>
> You can fetch IInterpreterRunner from IInterpreterInstall object and
> than use run() method. It requires launch configuration and so on. So
> it's not a very comfort way. But there is no other official way, except
> fetching IInterpreterInstall and launching using DebugPlugin.exec().
|
|
|
Powered by
FUDForum. Page generated in 0.02895 seconds