From 4e2dee7bebeb2dbaa917ab76ec20333febde32ef Mon Sep 17 00:00:00 2001 From: Appu Goundan Date: Wed, 5 Apr 2023 11:14:21 -0400 Subject: [PATCH] Do not fail if fuzzOut is not specified Signed-off-by: Appu Goundan --- fuzzing/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fuzzing/build.gradle.kts b/fuzzing/build.gradle.kts index 22fbd4b0..ab90035f 100644 --- a/fuzzing/build.gradle.kts +++ b/fuzzing/build.gradle.kts @@ -11,7 +11,10 @@ dependencies { implementation("com.code-intelligence:jazzer-api:0.16.0") } +// copy to the fuzzing builder's output directory. This is an existing directory with +// files in it, so don't use sync tasks.register("copyToFuzzOut") { dependsOn(tasks.build) - into(project.property("fuzzOut")).from(sourceSets.main.get().runtimeClasspath) + into(project.findProperty("fuzzOut") ?: project.layout.buildDirectory.dir("fuzzOut")) + from(sourceSets.main.get().runtimeClasspath) }