Skip to content

Commit d0b8666

Browse files
committed
Merge branch 'master' of github.com:grails/grails-core
2 parents 51beb1d + 6e32945 commit d0b8666

34 files changed

+1529
-1387
lines changed

src/java/org/codehaus/groovy/grails/cli/GrailsScriptRunner.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,12 @@ private void initBinding(Binding binding) {
732732
// Next add all those of installed plugins.
733733
for (File dir : listKnownPluginDirs(settings)) {
734734
File pluginDescriptor = getPluginDescriptor(dir);
735-
if (pluginDescriptor != null) descriptors.add(pluginDescriptor);
735+
if (pluginDescriptor != null) {
736+
descriptors.add(pluginDescriptor);
737+
}
738+
else {
739+
out.println("Cannot find plugin descriptor for path '" + dir.getPath() + "'.");
740+
}
736741
}
737742

738743
// Go through all the descriptors and add the appropriate binding
@@ -958,6 +963,8 @@ public boolean accept(File path) {
958963
* if none can be found.
959964
*/
960965
private static File getPluginDescriptor(File dir) {
966+
if (!dir.exists()) return null;
967+
961968
File[] files = dir.listFiles(new FilenameFilter() {
962969
public boolean accept(File file, String s) {
963970
return s.endsWith("GrailsPlugin.groovy");

0 commit comments

Comments
 (0)