Changing Gradle env variables when running a task by double clicking

Answered

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? 

 

1 comment
Comment actions Permalink

Hi Juho,

This looks like a product issue. Please follow: https://youtrack.jetbrains.com/issue/IDEA-298823

0

Please sign in to leave a comment.