I have a grails project that imports a local plugin in buildconfig.groovy using a system variable. When I do a run configuration for something like "run-app", I have to add a VM option similar to -Dpluginpath=c:\path\to\plugin. This poses a problem for IntelliJ Idea's automatic make process. Since there is no way for me to pass in -Dpluginpath, it breaks when it finds a broken path in the buildconfig.groovy. The same problem happens when I use IntelliJ Idea to add a new domain or controller class.
Is there any way to add my variable to the automatic make command (idea-print-project-settings)?