mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac2 for nested forms fixed
This commit is contained in:
@@ -516,12 +516,23 @@ public class Javac2 extends Javac {
|
||||
}
|
||||
}
|
||||
if (myNestedFormDirs != null) {
|
||||
for(Iterator it = myNestedFormDirs.iterator(); it.hasNext(); ) {
|
||||
String path = (String) it.next();
|
||||
if (path.replace(File.separatorChar, '/').toLowerCase().endsWith(formFileFullName)) {
|
||||
return loadForm(formFileName, new FileInputStream(path));
|
||||
}
|
||||
String[] list = myNestedFormDirs.list();
|
||||
for (int i = 0, listLength = list.length; i < listLength; i++) {
|
||||
String formPath = list[i];
|
||||
if (!formPath.endsWith("/")) {
|
||||
formPath += "/";
|
||||
}
|
||||
if (formFileFullName.startsWith("/")) {
|
||||
formPath += formFileName.substring(1);
|
||||
}
|
||||
else {
|
||||
formPath += formFileName;
|
||||
}
|
||||
File formFile = new File(formPath.replace('/', File.separatorChar));
|
||||
if (formFile.isFile()) {
|
||||
return loadForm(formFileName, new FileInputStream(formFile));
|
||||
}
|
||||
}
|
||||
}
|
||||
InputStream resourceStream = myLoader.getResourceAsStream(formFileName);
|
||||
if (resourceStream != null) {
|
||||
|
||||
Reference in New Issue
Block a user