Skip to content

Commit

Permalink
Adding per version tests: attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGBLP committed Jan 17, 2025
1 parent a1c8bc5 commit de4f6cc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ void createTestTask(String name, String desc, String environments, int javaVersi
timeout
]

// Do first is used when throwing exceptions.
// This way it's not called when defining the task.
doFirst {
if (!gradle.taskGraph.hasTask(":tasks") && !gradle.startParameter.dryRun) {
if (!project.hasProperty('profiler'))
throw new MissingPropertyException('Add parameter -Pprofiler=<path to profiler>', 'profiler', String.class)

args += '-agentpath:' + project.property('profiler') + '=port=8849,nowait'
}
}
//// Do first is used when throwing exceptions.
//// This way it's not called when defining the task.
//doFirst {
// if (!gradle.taskGraph.hasTask(":tasks") && !gradle.startParameter.dryRun) {
// if (!project.hasProperty('profiler'))
// throw new MissingPropertyException('Add parameter -Pprofiler=<path to profiler>', 'profiler', String.class)
//
// args += '-agentpath:' + project.property('profiler') + '=port=8849,nowait'
// }
//}
}
}

Expand Down

0 comments on commit de4f6cc

Please sign in to comment.