* module name. Expects libraries to be in the directory
* WEB-INF/modules/lib/module_name
*/
public List<Resource> getApplicationModuleLibraryLocations(String moduleName) {
String parent = relativeModuleRootLocation + "/lib/" + moduleName;
Resource parentResource = new ServletContextResource(servletContext, parent);
try {
File file = parentResource.getFile();
if (file.exists()) {
File[] files = file.listFiles(new ExtensionFileFilter(".jar"));
if (files != null && files.length > 0) {
return Arrays.asList(ResourceUtils.getResources(files));
}