Build system information

Answered

I'm building a plugin where it would be useful for me to know what build system, e.g. buck, maven, ant, gradle, etc., a project is using. How would I get this information using the open API?

0
2 comments

For build systems using External System Integration API (http://www.jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/external_system_integration.html), one can use generic com.intellij.openapi.externalSystem.ExternalSystemModulePropertyManager#getExternalSystemId.

For detecting Maven, use com.intellij.openapi.externalSystem.ExternalSystemModulePropertyManager#isMavenized.

Unfortunately, this does not apply for Ant, use com.intellij.lang.ant.config.AntConfiguration from Ant plugin instead.

 

1

Please sign in to leave a comment.