From dec6fc53377947b58b38c2fcb0d95fb23e19dd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Wed, 26 Apr 2023 12:13:53 +0200 Subject: [PATCH] bugfix/Make it work docs/glossary --- README.md | 2 +- .../src/main/docs}/glossary/Dynamic_Resource_Doc.md | 0 .../src/main/docs}/glossary/Run_via_IntelliJ_IDEA.md | 0 obp-api/src/main/scala/code/api/util/Glossary.scala | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename {docs => obp-api/src/main/docs}/glossary/Dynamic_Resource_Doc.md (100%) rename {docs => obp-api/src/main/docs}/glossary/Run_via_IntelliJ_IDEA.md (100%) diff --git a/README.md b/README.md index 6e8014891..693318853 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ In case that the above command fails try next one: export MAVEN_OPTS="-Xss128m" && mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api -[Note: How to run via IntelliJ IDEA](docs/glossary/Run_via_IntelliJ_IDEA.md) +[Note: How to run via IntelliJ IDEA](obp-api/src/main/docs/glossary/Run_via_IntelliJ_IDEA.md) ## Run some tests. diff --git a/docs/glossary/Dynamic_Resource_Doc.md b/obp-api/src/main/docs/glossary/Dynamic_Resource_Doc.md similarity index 100% rename from docs/glossary/Dynamic_Resource_Doc.md rename to obp-api/src/main/docs/glossary/Dynamic_Resource_Doc.md diff --git a/docs/glossary/Run_via_IntelliJ_IDEA.md b/obp-api/src/main/docs/glossary/Run_via_IntelliJ_IDEA.md similarity index 100% rename from docs/glossary/Run_via_IntelliJ_IDEA.md rename to obp-api/src/main/docs/glossary/Run_via_IntelliJ_IDEA.md diff --git a/obp-api/src/main/scala/code/api/util/Glossary.scala b/obp-api/src/main/scala/code/api/util/Glossary.scala index ba09b6e98..083892060 100644 --- a/obp-api/src/main/scala/code/api/util/Glossary.scala +++ b/obp-api/src/main/scala/code/api/util/Glossary.scala @@ -3099,7 +3099,7 @@ object Glossary extends MdcLoggable { private def getListOfFiles():List[File] = { val dir= LiftRules.getResource("/") .map(_.toURI.getPath - .replace("obp-api/src/main/webapp", "docs/glossary")) + .replace("webapp", "docs/glossary")) val d = new File(dir.getOrElse("")) if (d.exists && d.isDirectory) { d.listFiles.filter(_.isFile).filter(_.getName.endsWith(".md")).toList