Don't use $KOTLIN_HOME if already manually set
This commit is contained in:
parent
6305dd3de4
commit
53df02fa71
1 changed files with 5 additions and 3 deletions
|
@ -406,10 +406,12 @@ public class CompileKotlinOperation extends AbstractOperation<CompileKotlinOpera
|
|||
public CompileKotlinOperation fromProject(BaseProject project) {
|
||||
project_ = project;
|
||||
|
||||
if (kotlinHome_ == null) {
|
||||
var env = System.getenv("KOTLIN_HOME");
|
||||
if (env != null) {
|
||||
kotlinHome_ = new File(env);
|
||||
}
|
||||
}
|
||||
|
||||
workDir_ = new File(project.workDirectory().getAbsolutePath());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue