}
}
if (file != null && dotJava != null) {
String message = "Duplicate located: " + dotJava + " " + file;
alert(message);
throw new LocateException(message);
}
if (file != null) {
dotJava = file;
}
} else if (extension.equals("groovy")) {
if (dotGroovy != null) {
String message = "Duplicate located: " + dotGroovy + " " + file;
alert(message);
throw new LocateException(message);
}
dotGroovy = file;
} else if (extension.equals("api")) {
if (dotApi != null) {
String message = "Duplicate located: " + dotApi + " " + file;
alert(message);
//throw new LocateException(message);
} else {
dotApi = file;
}
} else {
String message = "unknown extension on " + file;
alert(message);
throw new LocateException(message);
}
} else {
String message = "unsupported type " + resource;
alert(message);
throw new LocateException(message);
}
}