Skip to content

Commit

Permalink
Fix Tomcat Plugin (#303)
Browse files Browse the repository at this point in the history
* fix

* Change changelog for towncrier, but not adding new
  • Loading branch information
t4lz authored Nov 28, 2024
1 parent a6e359f commit 1c27535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog.d/230.fixed.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Tomcat executions are now stopped when mirrord setup fails.
Tomcat executions now get stopped when mirrord setup fails.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class TomcatExecutionListener : ExecutionListener {
val startupInfoField =
RunnerSpecificLocalConfigurationBit::class.java.getDeclaredField("myStartupInfo")
startupInfoField.isAccessible = true
startupInfoField.set(config, patchedStartupInfo)
startupInfoField.set(config.first, patchedStartupInfo)
} else {
MirrordLogger.logger.debug("[${this.javaClass.name}] processStartScheduled: NOT using default - patching by changing the non-default script")
config.first.startupInfo.SCRIPT = it
Expand Down Expand Up @@ -255,7 +255,7 @@ class TomcatExecutionListener : ExecutionListener {
MirrordLogger.logger.debug("[${this.javaClass.name}] restoreConfig: found saved script info")
val startupInfoField = RunnerSpecificLocalConfigurationBit::class.java.getDeclaredField("myStartupInfo")
startupInfoField.isAccessible = true
startupInfoField.set(config, savedScriptInfo)
startupInfoField.set(config.first, savedScriptInfo)
}

MirrordLogger.logger.debug("[${this.javaClass.name}] restoreConfig: removing before run task")
Expand Down

0 comments on commit 1c27535

Please sign in to comment.