Skip to content

Commit

Permalink
fix for GRAILS-5949 "Disable ehcache's "phone home" code that is turn…
Browse files Browse the repository at this point in the history
…ed on by default and spy's on production environments"
  • Loading branch information
graemerocher committed Mar 4, 2010
1 parent f997c4e commit d94300a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -74,6 +74,8 @@ public class GrailsScriptRunner {
DEFAULT_ENVS.put("TestApp", Environment.TEST.getName());
DEFAULT_ENVS.put("RunWebtest", Environment.TEST.getName());
ExpandoMetaClass.enableGlobally();
// disable annoying ehcache up-to-date check
System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
}

private static final Pattern scriptFilePattern = Pattern.compile("^[^_]\\w+\\.groovy$");
Expand Down
Expand Up @@ -48,7 +48,8 @@ public class GrailsContextLoader extends ContextLoader {
GrailsApplication application;

protected WebApplicationContext createWebApplicationContext(ServletContext servletContext, ApplicationContext parent) throws BeansException {

// disable annoying ehcache up-to-date check
System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
ExpandoMetaClass.enableGlobally();
Metadata metadata = Metadata.getCurrent();
if(metadata!=null&&metadata.isWarDeployed()) {
Expand Down

0 comments on commit d94300a

Please sign in to comment.