Skip to content

Commit

Permalink
Use PROJECT_SOURCE as default working directory (#85)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladyslav Zhukovskyi <[email protected]>
  • Loading branch information
vzhukovs authored Feb 7, 2022
1 parent 8bcdaa2 commit d9ab0e9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class DevfileRunConfiguration(project: Project, factory: ConfigurationFactory, n
var runId = ""
var scriptText = ""
var workingDir = ""
get() = field.ifEmpty { "\${PROJECT_SOURCE}" }
set(value) {
value.ifEmpty { "\${PROJECT_SOURCE}" }.also { field = it }
}
var environment: EnvironmentVariablesData = EnvironmentVariablesData.DEFAULT

override fun getState(executor: Executor, environment: ExecutionEnvironment): RunProfileState {
Expand Down

0 comments on commit d9ab0e9

Please sign in to comment.