Run build/test from command line (original) (raw)
How to clean/make/test some (ipr/.idea) project from command line?
There is GUI-menu option "generate ant", but incremental build from Ant is not so reliable as idea can do. Seems IDEA incremental build is much-much-much more reliable than Ant can. IDEA can see what should be recomplied by dependencies, and recompile only needed *.class, delete orphan *.class without java (even nested/anonymous).
Also there is no command line option "generate ant build", so I have to manually "generate ant build" after any change in the project, so this option is not available.
Maybe there is some java -jar idea.jar Some.Class.For.Buld way, or may be import jar from java, like
import jetbrains.Some.Class.To.Run.For.Build
import jetbrains.Idea.Project
Build.SomeMethod(new jetbrains.Idea.Project( "myproject.ipr" ))
This solution is fine too, if available.
Thanks!