diff --git a/src/commons/grails/util/GenerateUtils.java b/src/commons/grails/util/GenerateUtils.java
index <HASH>..<HASH> 100644
--- a/src/commons/grails/util/GenerateUtils.java
+++ b/src/commons/grails/util/GenerateUtils.java
@@ -86,6 +86,7 @@ public class GenerateUtils {
         else {
             LOG.info("Grails was unable to generate templates for unsupported type ["+type+"]");
         }
+        System.exit(0);
     }
 
     private static GrailsDomainClass getDomainCallFromApplication(GrailsApplication application, String domainClassName) {
added system exit at the end of main call to avoid hanging problem in grails generate-all

git-svn-id: <URL>