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? 

 

0

Hi Juho,

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

0

Hey Karol Lewandowski

I was wondering if there is a workaround for this? It seems that there has not been much activity on the ticket.

Thank you for your help,

 Juho

0

Hi Juho,

Please ask in the ticket. I also suggest voting for it (votes help prioritize the work).

0

请先登录再写评论。