Fix for start-up problem if WAR is NOT unpacked (relevant e.g. for upcoming Spring Boot + MariaDB4j java -jar mifos.war
This commit is contained in:
+2
-1
@@ -60,7 +60,8 @@ public class CronMethodParser {
|
|||||||
throws IOException {
|
throws IOException {
|
||||||
final String basePackagePath = ClassUtils.convertClassNameToResourcePath(new StandardEnvironment()
|
final String basePackagePath = ClassUtils.convertClassNameToResourcePath(new StandardEnvironment()
|
||||||
.resolveRequiredPlaceholders(SEARCH_PACKAGE));
|
.resolveRequiredPlaceholders(SEARCH_PACKAGE));
|
||||||
final String packageSearchPath = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + basePackagePath + "/" + RESOURCE_PATTERN;
|
String packageSearchPath = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + basePackagePath + "/" + RESOURCE_PATTERN;
|
||||||
|
packageSearchPath = packageSearchPath.replace("//", "/"); // else it doesn't work if *.class are in WAR!!
|
||||||
final Resource[] resources = resourcePatternResolver.getResources(packageSearchPath);
|
final Resource[] resources = resourcePatternResolver.getResources(packageSearchPath);
|
||||||
for (final Resource resource : resources) {
|
for (final Resource resource : resources) {
|
||||||
if (resource.isReadable()) {
|
if (resource.isReadable()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user