简体   繁体   中英

intellij idea gradle plugin unable to use relative paths specified in gradle.properties

I have a Gradle project perfectly running (from the command line), configured to use a JDK specified with a relative path.

For this, I added a gradle.properties file to my project, containing:

org.gradle.java.home = jdk/

But when I try to run the build from Intellij Idea (14.0.3), I get:

Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: jdk/

Using absolute paths solves the issue. Do I misuse the gradle.properties or I just have to report a bug to Jetbrains, related to their Gradle plugin?

这是 IntelliJ 的 Gradle 插件的一个已知问题,您可以在这里在他们的问题跟踪器中投票: https : //youtrack.jetbrains.com/issue/IDEA-208432

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM