ScriptExecutionResult.kt| Field | Type | Purpose |
|---|---|---|
scriptLogger | ScriptLogger | Captures log messages from script execution |
result | Any? | Raw return value from the script |
exception | Throwable? | Exception (if script threw one) |
output | String? | Standard output captured during execution |
script | String | The effective script text with auto-imports |
downloadAvailable | String? | User-friendly message if a download is ready |
resultAsUserFriendlyString | String? | Formatted string representation |
hasResult() checks if result is non-null. hasException() checks both exception and whether result itself is a Throwable. resultAsHtmlString escapes HTML characters and replaces newlines with <br/>.
868d6abb7 2025 -> 2026 bbdb5825b Scripts: exception -> log, UserContext.refreshUser() handling changed. 63081666f Source file headers: 2024-> 2025. ae9962eb7 Script execution improved (logging for end user). aeff942b5 Script execution improved (logging for end user). b6092df09 Copyright 2023 -> 2024 ab45d51fa Copyright 2001-2022 -> 2001-2023. a080e9dd5 WIP scripting... 5f7ef41b8 Copyright 2021 -> 2022 ceb63e8a1 Source code header: (C) 2001-2021. 52d9c1d88 WIP: Kotlin scripts... c5aa8210b WIP: Support of Kotlin scripts added in addition to Groovy... 7c79f1922 Copyright of source header -> 2020. dd5ca38ac CopyRight of all java file-header updated or created. 9ebb88522 Initial commit