I'm trying to make plugin for Intellij.
Can I get project build command in plugin? (like make dist
or gbs build --include-all
)
And does it works for Android Studio?
Asked
Active
Viewed 82 times
-1

region1029
- 71
- 1
- 2
1 Answers
1
In IntelliJ IDEA, to build a project, call
CompilerManager.getInstance(project).make(null);
Android Studio does not use IntelliJ IDEA's build system, so you need to call a different API:
GradleInvoker.getInstance(project).compileJava(moduleManager.getModules());

yole
- 92,896
- 20
- 260
- 197