ImageDir as a property is unneeded and can be derived
MODIFY
dd-smoke-tests/java9-modules/java9-modules.gradle
dd-smoke-tests/java9-modules/java9-modules.gradle
@@ -31,7 +31,6 @@ tasks.withType(BaseTask).each {
test {
dependsOn tasks.jlink
- jvmArgs "-Ddatadog.smoketest.module.image=${buildDir}/image"
}
dependencies {

MODIFY
dd-smoke-tests/java9-modules/src/test/groovy/datadog/smoketest/Java9ModulesSmokeTest.groovy
dd-smoke-tests/java9-modules/src/test/groovy/datadog/smoketest/Java9ModulesSmokeTest.groovy
@@ -10,13 +10,8 @@ class Java9ModulesSmokeTest extends AbstractSmokeTest {
@Override
ProcessBuilder createProcessBuilder() {
- println System.getProperties()
- String imageDir = System.getProperty("datadog.smoketest.module.image")
-
- assert imageDir != null
-
List<String> command = new ArrayList<>()
- command.add(imageDir + "/bin/java")
+ command.add(buildDirectory + "/image/bin/java")
command.addAll(defaultJavaProperties)
command.addAll((String[]) ["-m", "datadog.smoketest.moduleapp/datadog.smoketest.moduleapp.ModuleApplication"])
ProcessBuilder processBuilder = new ProcessBuilder(command)

ImageDir as a property is unneeded and can be derived