draft
This commit is contained in:
parent
b006b8c1ab
commit
e9f516580e
@ -28,9 +28,8 @@ generateJavaDoc:
|
||||
- dind
|
||||
script:
|
||||
- echo "Generating Javadoc..."
|
||||
- gradle generateJavaDoc
|
||||
- find /builds/redactmanager/redaction-service -name "javadoc"
|
||||
- gradle generateJavaDoc -PjavadocDestinationDir="/builds/redactmanager/redaction-service/javadoc"
|
||||
artifacts:
|
||||
paths:
|
||||
- docs/javadoc/
|
||||
- /builds/redactmanager/redaction-service/javadoc
|
||||
rules:
|
||||
@ -140,23 +140,5 @@ tasks.register("generateJavaDoc", Javadoc::class) {
|
||||
source = fileTree("${buildDir}/generated/sources/delombok/java/main") {
|
||||
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.")
|
||||
}
|
||||
}
|
||||
destinationDir = file(project.findProperty("javadocDestinationDir")?.toString() ?: "")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user