diff --git a/redaction-service-v1/redaction-service-server-v1/build.gradle.kts b/redaction-service-v1/redaction-service-server-v1/build.gradle.kts index 87aa9f63..226629f9 100644 --- a/redaction-service-v1/redaction-service-server-v1/build.gradle.kts +++ b/redaction-service-v1/redaction-service-server-v1/build.gradle.kts @@ -141,4 +141,22 @@ tasks.register("generateJavaDoc", Javadoc::class) { include(droolsImports) } destinationDir = file("docs/javadoc") + + doLast { + // Get the docs/javadoc directory as a File object + val javadocDir = file("docs/javadoc/") + + // Print the absolute path of the directory + println("The absolute path of the docs/javadoc directory is: ${javadocDir.absolutePath}") + + // Check if the directory exists and list its contents + if (javadocDir.exists()) { + println("Listing contents of ${javadocDir.absolutePath}:") + javadocDir.listFiles()?.forEach { file -> + println(file.absolutePath) + } + } else { + println("The directory does not exist.") + } + } }