Skip to content

Commit 44836dc

Browse files
authored
Merge pull request #2521 from hongwei1/refactor/glossaryFolder
refactor/update glossary path to resources directory and add error lo…
2 parents 4fac006 + b5f293e commit 44836dc

File tree

5 files changed

+2
-218
lines changed

5 files changed

+2
-218
lines changed

obp-api/src/main/docs/glossary/Dynamic_Resource_Doc.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

obp-api/src/main/docs/glossary/OAuth_2.0_Client_Credentials_Flow_Manual.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

obp-api/src/main/docs/glossary/Run_via_IntelliJ_IDEA.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

obp-api/src/main/docs/glossary/TPP_Certificate_Verification.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

obp-api/src/main/scala/code/api/util/Glossary.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3515,7 +3515,7 @@ object Glossary extends MdcLoggable {
35153515

35163516
private def getListOfFiles(): List[File] = {
35173517
val glossaryPath = new File(getClass.getResource("").toURI.toString.replaceFirst("target/.*", "").replace("file:", ""),
3518-
"src/main/docs/glossary")
3518+
"/src/main/resources/docs/glossary")
35193519
logger.info(s"|---> Glossary path: $glossaryPath")
35203520

35213521
if (glossaryPath.exists && glossaryPath.isDirectory) {
@@ -3525,6 +3525,7 @@ object Glossary extends MdcLoggable {
35253525
.filter(_.getName.endsWith(".md"))
35263526
.toList
35273527
} else {
3528+
logger.error(s"Do not have any files under glossary path ($glossaryPath), please double check the folder: obp-api/src/main/resources/docs/glossary")
35283529
List.empty[File]
35293530
}
35303531
}

0 commit comments

Comments
 (0)