Describe the bug
I'm deploying a java app that has a webapp folder.
Inside that webapp folder, we have a web-inf folder where we drop some files that we need in runtime.
Then in the app we access them via: BirtEngine.class.getProtectionDomain().getCodeSource().getLocation().getPath() (BirtEngine is a class of the app).
But the problem is that instead of getting path of the generated folder via maven, it takes as path /target/classes
Intellij & SmartTomcat Version (Help -> About copy & paste below)
IntelliJ IDEA 2023.3.3 (Community Edition)
Smarttomcat 4.7.2
Describe the bug
I'm deploying a java app that has a webapp folder.
Inside that webapp folder, we have a web-inf folder where we drop some files that we need in runtime.
Then in the app we access them via: BirtEngine.class.getProtectionDomain().getCodeSource().getLocation().getPath() (BirtEngine is a class of the app).
But the problem is that instead of getting path of the generated folder via maven, it takes as path /target/classes
Intellij & SmartTomcat Version (Help -> About copy & paste below)
IntelliJ IDEA 2023.3.3 (Community Edition)
Smarttomcat 4.7.2