Skip to content

Commit

Permalink
🐛 add the javaagent configuration as an input to the start script tas…
Browse files Browse the repository at this point in the history
…k since we template the start script at generation time with information resolved off javaagent configuration

Fixes #41
  • Loading branch information
ryandens committed Oct 18, 2023
1 parent 73b6452 commit c952c67
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class JavaagentApplicationDistributionPlugin : Plugin<Project>, JavaagentPlugin
// variable that corresponds to the distribution installation's home directory
it.defaultJvmOpts = listOf("-javaagent:COM_RYANDENS_JAVAAGENTS_PLACEHOLDER.jar")
.plus(it.defaultJvmOpts ?: listOf())
it.inputs.files(javaagentConfiguration)
// custom start script generator that replaces the placeholder
it.unixStartScriptGenerator = JavaagentAwareStartScriptGenerator(javaagentConfiguration.map { configuration -> configuration.files })
// TODO build support for windows
Expand Down

0 comments on commit c952c67

Please sign in to comment.