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