File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,17 +28,16 @@ abstract class GenerateCurveTables : DefaultTask() {
2828 // Default to false
2929 forceRegenerate.convention(false )
3030
31- outputs.upToDateWhen {
32- // Check for -PforceCurveTables on command line OR task property
31+ onlyIf {
3332 val force = project.hasProperty(" forceCurveTables" ) || forceRegenerate.get()
3433
3534 if (force) {
36- false
35+ true
3736 } else if (rustTableUrl.isPresent && ! rustTableFile.isPresent) {
3837 val outDir = outputDir.get().asFile
3938 val pricingExists = outDir.resolve(" discrete_pricing_table.bin" ).exists()
4039 val cumulativeExists = outDir.resolve(" discrete_cumulative_table.bin" ).exists()
41- pricingExists && cumulativeExists
40+ ! ( pricingExists && cumulativeExists) // run only if files are MISSING
4241 } else {
4342 true
4443 }
You can’t perform that action at this time.
0 commit comments