Skip to content

Commit

Permalink
Ensure changes to template scripts update the output
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Feb 16, 2022
1 parent 682a1f3 commit e7ec74a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions buildSrc/src/main/groovy/io.deephaven.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ plugins.withType(ApplicationPlugin) {
}
}
tasks.withType(CreateStartScripts).configureEach {
inputs.properties(['scriptVers': Math.random()])
windowsStartScriptGenerator.template = resources.text.fromUri(getClass().classLoader.getResource('windowsStartScript.txt'))
unixStartScriptGenerator.template = resources.text.fromUri(getClass().classLoader.getResource('unixStartScript.txt'))
def windowsStartScript = resources.text.fromUri(getClass().classLoader.getResource('windowsStartScript.txt'))
def unixStartScript = resources.text.fromUri(getClass().classLoader.getResource('unixStartScript.txt'))
inputs.files windowsStartScript
inputs.files unixStartScript
windowsStartScriptGenerator.template = windowsStartScript
unixStartScriptGenerator.template = unixStartScript
// Note that we don't call c2ExcludesJvmArgs() at this time, there is no way to template those strings.
// Instead, we hard code the expected paths in the above templates to match the path lib/dh-compiler-directives.txt
// defaultJvmOpts += c2ExcludesJvmArgs(c2ExcludesFile.singleFile.path)
Expand Down

0 comments on commit e7ec74a

Please sign in to comment.