String targetDirectory = JavaUtils.ensurePathHasSeparatorAtTheEnd(
jarsToDeploy.get(jar).get(classPath));
String fullClassFileDirectory = FilenameUtils.concat(targetDirectory,
FilenameUtils.getFullPath(classPath));
Collection<File> foundFiles = FileUtils.listFiles(new File(fullClassFileDirectory),
new WildcardFileFilter(classNameWildcards), null);
if (!filesToAdd.containsKey(targetDirectory)) {
filesToAdd.put(targetDirectory, new ArrayList<String>());
}
for (File file : foundFiles) {
filesToAdd.get(targetDirectory).add(file.getAbsolutePath().substring(