Permalink
Browse files

enable EMC as early as possible to prevent meta class inconsistencies…

…. fix for GRAILS-8832 "plugin dynamic methods added to a custom grails artefact are unavailable during integration testing"
  • Loading branch information...
1 parent 02d3c4d commit df9769cbbc9f9cf06b167c29df705edcc7480bb6 @graemerocher graemerocher committed with smaldini Mar 26, 2012
@@ -24,6 +24,7 @@
import grails.util.GrailsNameUtils;
import grails.util.PluginBuildSettings;
import groovy.lang.Closure;
+import groovy.lang.ExpandoMetaClass;
import groovy.lang.GroovyObject;
import groovy.lang.GroovySystem;
import groovy.util.AntBuilder;
@@ -127,7 +128,7 @@ public void setInteractive(boolean interactive) {
*/
public static void main(String[] args) {
System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
-
+ ExpandoMetaClass.enableGlobally();
originalIn = System.in;
originalOut = System.out;

0 comments on commit df9769c

Please sign in to comment.