This commit is contained in:
Dave Syer
2015-09-30 17:53:30 +01:00
parent 26085499c0
commit 4310cc2017

View File

@@ -78,16 +78,18 @@ public class GenericResourceRepository
}
else {
String ext = StringUtils.getFilenameExtension(path);
String file = path;
if (ext != null) {
ext = "." + ext;
path = StringUtils.stripFilenameExtension(path);
file = StringUtils.stripFilenameExtension(path);
}
else {
ext = "";
}
paths.add(path + "-" + profile + ext);
paths.add(file + "-" + profile + ext);
}
}
paths.add(path);
return paths;
}