Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » execute arbitrary scripts
execute arbitrary scripts [message #2630] Tue, 15 May 2007 15:00 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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().
Previous Topic:Editor: Double Quoting
Next Topic:DBGp Debug Commands and Encoding.
Goto Forum:
  


Current Time: Fri Apr 12 18:10:31 GMT 2024

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

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

Back to the top