Changing Gradle env variables when running a task by double clicking

已回答

Hi!

I am working on a plugin that adds environment variables to Gradle executions based on external user configuration files. I have been using 

org.jetbrains.plugins.gradle.executionEnvironmentProvider

extension point to set the variables, and this has worked well. However, I noticed that when you double click a task from the Gradle side panel, this extension point is never called. It seems that the task executions is quite different when double clicking a task vs right clicking and selecting run. Is there an extension point or a way I could use in my plugin to set the environment variables that would also work when double clicking a task to run it? 

 

请先登录再写评论。