Hooking into run events - possible?

Is there a way to listen to run events? something like
RunManager.addRunManagerListener so that a plugin might know when IDEA
is about to execute one of the project's run configurations?

The Ant integration does this by allowing to execute certain Ant targets
before/after one or more of the registered run configurations, so I'm
sure its possible...just not sure its possible for plugin devs ;)

I've searched the newsgroups and forums, and some people have asked for
something similar, but none was recent (regarding Irida) and none of
the posts had anything that answered this need.

10x in advance..
Arik.

10 comments
Comment actions Permalink

What particular actions you're going to perform upong receiving such an event?
I'm asking because the process is heavily asyncrhonous with many steps like
compiling, executing ant task, building execution parameters, launching,
creating console, attaching etc. so there are quite many places to hook into.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Is there a way to listen to run events? something like
RunManager.addRunManagerListener so that a plugin might know when
IDEA is about to execute one of the project's run configurations?

The Ant integration does this by allowing to execute certain Ant
targets before/after one or more of the registered run configurations,
so I'm sure its possible...just not sure its possible for plugin devs
;)

I've searched the newsgroups and forums, and some people have asked
for something similar, but none was recent (regarding Irida) and none
of the posts had anything that answered this need.

10x in advance..
Arik.



0
Comment actions Permalink

Well, I want to do pretty much what Ant does - run an Ant target (well,
not Ant, but something else) before the run configuration is, well, run ;)

More specifically, I want to run an external process (like Ant plugin
does) before running one or more of the user-selected run
configurations, and if possible, abort the run if the process fails for
some reason. Is that possible?


Maxim Shafirov (JetBrains) wrote:

What particular actions you're going to perform upong receiving such
an event? I'm asking because the process is heavily asyncrhonous with
many steps like compiling, executing ant task, building execution
parameters, launching, creating console, attaching etc. so there are
quite many places to hook into.

>

-------------------
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

>
>> Is there a way to listen to run events? something like
>> RunManager.addRunManagerListener so that a plugin might know when
>> IDEA is about to execute one of the project's run configurations?
>>
>> The Ant integration does this by allowing to execute certain Ant
>> targets before/after one or more of the registered run configurations,
>> so I'm sure its possible...just not sure its possible for plugin devs
>> ;)
>>
>> I've searched the newsgroups and forums, and some people have asked
>> for something similar, but none was recent (regarding Irida) and none
>> of the posts had anything that answered this need.
>>
>> 10x in advance..
>> Arik.
>
>
>

0
Comment actions Permalink

Will it be possible in the coming EAP?

Arik Kfir wrote:

Well, I want to do pretty much what Ant does - run an Ant target
(well, not Ant, but something else) before the run configuration is,
well, run ;)

>

More specifically, I want to run an external process (like Ant plugin
does) before running one or more of the user-selected run
configurations, and if possible, abort the run if the process fails
for some reason. Is that possible?

>
>

Maxim Shafirov (JetBrains) wrote:

>
>> What particular actions you're going to perform upong receiving such
>> an event? I'm asking because the process is heavily asyncrhonous with
>> many steps like compiling, executing ant task, building execution
>> parameters, launching, creating console, attaching etc. so there are
>> quite many places to hook into.
>>
>> -


>> Maxim Shafirov
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>
>>> Is there a way to listen to run events? something like
>>> RunManager.addRunManagerListener so that a plugin might know when
>>> IDEA is about to execute one of the project's run configurations?
>>>
>>> The Ant integration does this by allowing to execute certain Ant
>>> targets before/after one or more of the registered run configurations,
>>> so I'm sure its possible...just not sure its possible for plugin devs
>>> ;)
>>>
>>> I've searched the newsgroups and forums, and some people have asked
>>> for something similar, but none was recent (regarding Irida) and none
>>> of the posts had anything that answered this need.
>>>
>>> 10x in advance..
>>> Arik.
>>
>>
>>

0
Comment actions Permalink

Hi,

I need the same functionallity too.
I want to hook into an Ant Script. What I try to create is some sort of
"Ant Debugger" (the first version will just be some sort of visualizer)...
Any ideas?


Johannes Schneider



Maxim Shafirov (JetBrains) wrote:

What particular actions you're going to perform upong receiving such an
event? I'm asking because the process is heavily asyncrhonous with many
steps like compiling, executing ant task, building execution parameters,
launching, creating console, attaching etc. so there are quite many
places to hook into.

0
Comment actions Permalink

Did you have any luck yet? I still could not find a way to do this...

"Johannes Schneider" <js@yworks.com> wrote in message
news:d58254$vv8$1@is.intellij.net...

Hi,

>

I need the same functionallity too.
I want to hook into an Ant Script. What I try to create is some sort of
"Ant Debugger" (the first version will just be some sort of visualizer)...
Any ideas?

>
>

Johannes Schneider

>
>
>

Maxim Shafirov (JetBrains) wrote:

>> What particular actions you're going to perform upong receiving such an
>> event? I'm asking because the process is heavily asyncrhonous with many
>> steps like compiling, executing ant task, building execution parameters,
>> launching, creating console, attaching etc. so there are quite many
>> places to hook into.
>>


0
Comment actions Permalink

No luck :( - and no answer from Jetbrains...

0
Comment actions Permalink

it almost seems as if they're ignoring this thread. perhaps it simply isn't
possible yet...shame though, it would have been really useful.

actually it's a bit frustrating since the Ant integration DOES this...if
only we had the sources for the ant support! :)

"Johannes Schneider" <idea@johannes-schneider.info> wrote in message
news:17093761.1116924339059.JavaMail.javamailuser@localhost...

No luck :( - and no answer from Jetbrains...



0
Comment actions Permalink

Arik Kfir wrote:

it almost seems as if they're ignoring this thread. perhaps it simply isn't
possible yet...shame though, it would have been really useful.

actually it's a bit frustrating since the Ant integration DOES this...if
only we had the sources for the ant support! :)


Idea, go OpenSource! ;)


Johannes Schneider

0
Comment actions Permalink

Could anyone from JB please help?

thanks..

0
Comment actions Permalink

Arik Kfir wrote:

Could anyone from JB please help?

thanks..


Push ;)

0

Please sign in to leave a comment.