Suppress some 'cannot load map file' error messages in MapValidator editor plugin script.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11680 282e977c-c81d-0410-88c4-b93c2d0d6712
master
akirschbaum 2009-05-14 20:21:26 +00:00
parent 97f78ec644
commit a3fa729ae8
1 changed files with 6 additions and 2 deletions

View File

@ -93,10 +93,14 @@ try {
Iterator it = new RecursiveFileIterator(new File(rootDirectory));
while (it.hasNext()) {
File file = it.next();
String name = file.getName();
if (file.isFile()
&& file.getPath().startsWith(rootDirectory)
&& !file.getName().equalsIgnoreCase("README")
&& !file.getName().endsWith(".msg")) {
&& !name.equalsIgnoreCase("README")
&& !name.equalsIgnoreCase("README.txt")
&& !name.endsWith(".msg")
&& !name.endsWith(".py")
&& !name.endsWith(".pyc")) {
checkMap(file, file.getPath().substring(mapDefaultFolder.length()));
}
}