You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/kscript/app/AppHelpers.kt
+45-14Lines changed: 45 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,8 @@ fun launchIdeaWithKscriptlet(scriptFile: File,
207
207
includeURLs:List<URL>,
208
208
compilerOpts:String): String {
209
209
val intellijCommand =System.getenv("KSCRIPT_IDEA_COMMAND") ?:"idea"
210
+
val gradleCommand =System.getenv("KSCRIPT_GRADLE_COMMAND") ?:"gradle"
211
+
210
212
requireInPath("$intellijCommand", "Could not find '$intellijCommand' in your PATH. You must set the command used to launch your intellij as 'KSCRIPT_IDEA_COMMAND' env property")
211
213
212
214
infoMsg("Setting up idea project from ${scriptFile}")
@@ -229,20 +231,10 @@ fun launchIdeaWithKscriptlet(scriptFile: File,
requireInPath("$gradleCommand", "Could not find '$gradleCommand' in your PATH. You must set the command used to launch your intellij as 'KSCRIPT_GRADLE_COMMAND' env property")
0 commit comments