[GRADLE-1852] Tooling API: Allow custom jdk location definition for IntelliJ IDEA integration Created: 20/Oct/11 Updated: 04/Jan/13 Resolved: 24/Apr/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | ||
Reporter: | Denis Zhdanov | Assignee: | Szczepan Faber |
Resolution: | Duplicate | Votes: | 4 |
Description |
The subj |
Comments |
Comment by Kris De Volder [ 17/Nov/11 ] |
This is also important for STS/Eclipse integration. I have multiple reports of people having issues running Gralde tasks that require the Java compiler. Presumably the problems are due to gradle finding a JRE on their system and using that instead of the JDK. There currently is no mechanism at all for the IDE to specify which JAVA_HOME gradle ought to use. So no way for me to really fix the problems those users are experiencing. Blocked issues in STS: |
Comment by Szczepan Faber [ 20/Nov/11 ] |
I guess we need to take on Thanks for reporting! |
Comment by Szczepan Faber [ 24/Apr/12 ] |
Denis, I think this is a duplicate of |
Comment by Denis Zhdanov [ 02/May/12 ] |
Hi, I don't see that the current task is a duplicate of |
Comment by Denis Zhdanov [ 02/May/12 ] |
Btw, it seems that I don't have enough rights at the tracker to reopen the ticket. |
Comment by Kris De Volder [ 02/May/12 ] |
I agree with Denis, calling it a duplicate may be stretching it. However on the bright side. I do think this issue is now resolved. I even implemented something in STS already that allows the user to pick their JVM to use for Gradle. And I'm now able to pass this info to the tooling API with no problem. The method in the API is this one: |
Comment by Szczepan Faber [ 07/May/12 ] |
Agreed, duplicate is a stretch. We always considered the args and java location as a same thing internally Denis, did you notice the org.gradle.tooling.LongRunningOperation.setJavaHome(File) method? Does it solve the problem? |
Comment by Denis Zhdanov [ 09/May/12 ] |
Yes, I think it addresses the problem. |