-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support env files for Gradle Run/Debug configurations (IDEA 2017.2) #38
Comments
Cannot say for sure yet but it seems that it might be possible - take some time to figure out available integration points... |
I use Idea 2017.3.3 and env version 2.1.0. Whats up with my doing? |
Ah, wait, I used an Can you please provide me with a minimal |
I will try it to morrow in the morning. |
I met same problem: running by gradle tasks do not uses file for env import on IDEA community 2018.2 How check it:
plugins {
id 'java'
id 'application'
}
group 'mert'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
mainClassName="App"
public class App {
public static void main(String[] args) {
System.out.print(System.getenv().getOrDefault("FOO", "EMPTY"));
}
}
PS |
Same issue here, any ETA on this please? |
@yelhouti contributions are welcome! |
Actually, I was able to figure out a hack to make it work. See https://github.com/ashald/EnvFile#experimental-integrations for details. I just released Kudos to @mertvetsky for reproduction steps! |
great thank you very much :) |
With IntelliJ IDEA 2017.2, environment variables are supported for Gradle Run/Debug configurations: https://www.jetbrains.com/idea/whatsnew/#v2017-2-gradle.
It would be great if the "EnvFile" tab would also be available for Gradle configurations.
The text was updated successfully, but these errors were encountered: