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
warnMsg("Could not find '${osConfig.gradleCommand}' in your PATH. You must set the command used to launch your intellij as 'KSCRIPT_COMMAND_GRADLE' env property")
91
+
warnMsg("Could not find '${commandResolver.osConfig.gradleCommand}' in your PATH. You must set the command used to launch your intellij as 'KSCRIPT_COMMAND_GRADLE' env property")
81
92
}
82
93
83
-
if (isInPath(osConfig.osType, osConfig.intellijCommand)) {
94
+
if (isInPath(commandResolver.osConfig.osType, commandResolver.osConfig.intellijCommand)) {
84
95
val command = commandResolver.executeIdea(projectPath)
@@ -94,19 +105,19 @@ class Executor(private val commandResolver: CommandResolver, private val osConfi
94
105
throwIllegalStateException("Execution of idea command failed:\n$processResult")
95
106
}
96
107
} else {
97
-
warnMsg("Could not find '${osConfig.intellijCommand}' in your PATH. You should set the command used to launch your intellij as 'KSCRIPT_COMMAND_IDEA' env property")
108
+
warnMsg("Could not find '${commandResolver.osConfig.intellijCommand}' in your PATH. You should set the command used to launch your intellij as 'KSCRIPT_COMMAND_IDEA' env property")
98
109
}
99
110
}
100
111
101
112
funcreatePackage(projectPath:OsPath) {
102
-
if (!isInPath(osConfig.osType, osConfig.gradleCommand)) {
113
+
if (!isInPath(commandResolver.osConfig.osType, commandResolver.osConfig.gradleCommand)) {
103
114
throwIllegalStateException("Gradle is required to package scripts.")
104
115
}
105
116
106
117
val command = commandResolver.createPackage()
107
118
devMsg("Create package command: $command")
108
119
109
-
val result =ShellExecutor.evalAndGobble(osConfig.osType, command, workingDirectory = projectPath)
120
+
val result =ShellExecutor.evalAndGobble(commandResolver.osConfig.osType, command, workingDirectory = projectPath)
110
121
111
122
if (result.exitCode !=0) {
112
123
throwIllegalStateException("Packaging for path: '$projectPath' failed:$result")
0 commit comments