bugfix/tweaked the path for glossary folder

This commit is contained in:
hongwei 2025-04-02 12:12:40 +02:00
parent e75e190bf7
commit e0427ef1b3

View File

@ -3514,8 +3514,8 @@ object Glossary extends MdcLoggable {
}
private def getListOfFiles():List[File] = {
val currentDir = new File(".").getCanonicalPath
val d = new File(currentDir + "/obp-api/src/main/docs/glossary")
val d = new File(getClass.getResource("").toURI.toString.replaceFirst("target/.*", "").replace("file:", ""),
"src/main/docs/glossary")
if (d.exists && d.isDirectory) {
d.listFiles.filter(_.isFile).filter(_.getName.endsWith(".md")).toList
} else {