Post compile api

Are there any hooks in the OpenApi that allow me to write a plug-in that
runs after compiling? I looked through both the 3.0.4 and latest EAP
OpenApi javadocs, but couldn't find anything related to running after
compilation. Specifically, I want to write something that will do JDO
Enhancement after IntelliJ has compiled everything. I currently have an ant
task that does it, but the internal compiler is much faster.

Nathan


0
6 comments
Avatar
Permanently deleted user

The way I usually do this is write a wrapper for the action
and register that with the ActionManager instead of the action.
Not sure if this will work for compiling triggered by Run.


Nathan Voxland wrote:

Are there any hooks in the OpenApi that allow me to write a plug-in that
runs after compiling? I looked through both the 3.0.4 and latest EAP
OpenApi javadocs, but couldn't find anything related to running after
compilation. Specifically, I want to write something that will do JDO
Enhancement after IntelliJ has compiled everything. I currently have an ant
task that does it, but the internal compiler is much faster.

Nathan


--

Erb

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0
Avatar
Permanently deleted user

You do know that you can run an ant task automatically after compilation,
right..?

Vil.

Nathan Voxland wrote:

Are there any hooks in the OpenApi that allow me to write a plug-in that
runs after compiling? I looked through both the 3.0.4 and latest EAP
OpenApi javadocs, but couldn't find anything related to running after
compilation. Specifically, I want to write something that will do JDO
Enhancement after IntelliJ has compiled everything. I currently have an ant
task that does it, but the internal compiler is much faster.


--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Avatar
Permanently deleted user

I know you can run an ant task, I was just hoping that not having to start
ant would speed up the process.

Nathan

"Vilya Harvey" <vilya.harvey@digitalsteps.com> wrote in message
news:bfhv5f$q50$1@is.intellij.net...

You do know that you can run an ant task automatically after compilation,
right..?

>

Vil.

>

Nathan Voxland wrote:

Are there any hooks in the OpenApi that allow me to write a plug-in that
runs after compiling? I looked through both the 3.0.4 and latest EAP
OpenApi javadocs, but couldn't find anything related to running after
compilation. Specifically, I want to write something that will do JDO
Enhancement after IntelliJ has compiled everything. I currently have an

ant

task that does it, but the internal compiler is much faster.

>

--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

>

Disclaimer

>

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

>


0
Avatar
Permanently deleted user

I am working on a similar problem - doing code hotswapping after a successful compile on a running application. I currently pop up a dialog for the user to hit 'OK' when the compile completes, but obviously it would be nice to get some notification when the compiler completes it's task.

Wrapping around the exisiting 'make' action lets me trigger the make action, but I still don't get any notification when the compiling completes, and apparently it does this asynchronously. Is there any way to know with certainty when the compiler is finished?

I can't use an ant task in this situation, because I also need to execute some code before the compile action.

0

I know you can run an ant task, I was just hoping
that not having to start
ant would speed up the process.


Then may be you can add some votes to my feature request -"Slow Ant start-up - 'Ant Console' to rescue"

http://www.intellij.net/tracker/idea/viewSCR?publicId=23514

Or use Ant Console by yourself (like I do) which eliminates completely the problem of Ant start time

0
Avatar
Permanently deleted user

Another workaround to consider is to add a listener to the VirtualFileSystem of the CompilerOutput path, and check whether any class files have changed.

0

Please sign in to leave a comment.