|
|
@ -307,7 +307,7 @@ public class PluginHelper { |
|
|
|
File[] files = file.listFiles(); |
|
|
|
File[] files = file.listFiles(); |
|
|
|
if (ArrayUtils.isNotEmpty(files)) { |
|
|
|
if (ArrayUtils.isNotEmpty(files)) { |
|
|
|
for (File f : files) { |
|
|
|
for (File f : files) { |
|
|
|
if (foundConfigFile(f)) { |
|
|
|
if (hasFoundConfigFile(f)) { |
|
|
|
return f; |
|
|
|
return f; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -316,7 +316,7 @@ public class PluginHelper { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static boolean foundConfigFile(File dir) { |
|
|
|
private static boolean hasFoundConfigFile(File dir) { |
|
|
|
if (!dir.isDirectory()) { |
|
|
|
if (!dir.isDirectory()) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|