Added check if provided path is directory
This commit is contained in:
parent
0c8b02a630
commit
dae6a808b6
1 changed files with 5 additions and 3 deletions
|
@ -152,9 +152,11 @@ public class TranslationConverter {
|
||||||
log.debug("prefixesRegex " + prefixesRegex);
|
log.debug("prefixesRegex " + prefixesRegex);
|
||||||
for (String dir : i18nDirs) {
|
for (String dir : i18nDirs) {
|
||||||
File realDir = new File(ctx.getRealPath(dir));
|
File realDir = new File(ctx.getRealPath(dir));
|
||||||
Collection<File> files = FileUtils.listFiles(realDir, new RegexFileFilter(prefixesRegex + ".*\\.properties"), DirectoryFileFilter.DIRECTORY);
|
if (realDir.isDirectory()) {
|
||||||
for (File file : files) {
|
Collection<File> files = FileUtils.listFiles(realDir, new RegexFileFilter(prefixesRegex + ".*\\.properties"), DirectoryFileFilter.DIRECTORY);
|
||||||
convert(file);
|
for (File file : files) {
|
||||||
|
convert(file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue