Java source files don't get compiled

Hi,

my plugin creates a project with multiple modules. All modules have a custom sdk and a source folder with java source files.

I registered somd afterTasks at the CompilerManager, but when they got executed the java source files were not compiled.
When I use the default java run action, all classes get compiled. Do I miss something?

0
5 comments
Avatar
Permanently deleted user

Hi Tim, 

Please provide more details on what you would like to achieve with your plugin and what components you register

0
Avatar
Permanently deleted user

I register some after compile tasks in AbstractProjectComponent.doProjectOpened(project). Do you need to knowm more about the project structure? I would like to benefit from incremental compilation within the ide for the java sources. 

0
Avatar
Permanently deleted user

I need to know the task you are going to solve. All "after compile" registered tasks will be called inside IDE process after compilation is completed. The whole build is performed in a separate process. All java classes are already compiled incrementally, you don't have to do anything to get incremental java compilation.

Please check out a short overview of the build process architecture:

http://www.jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/external_builder_api.html

0
Avatar
Permanently deleted user

the task is to use the .class files compiled by intellij as input for our custom compiler. We use a custom run configuration to specify main class etc.

Unfortunately the java sources are not compiled in any situation. 

0
Avatar
Permanently deleted user

> Unfortunately the java sources are not compiled in any situation. 

I cannot reproduce this. If it is reliably reproducible for you, could you please create a small project illustrating the behavior and send it to me? Please also zip the content of "<idea-system-dir>/log" directory and send it to me too.

0

Please sign in to leave a comment.