Author: pete.muir(a)jboss.org
Date: 2008-09-19 08:10:35 -0400 (Fri, 19 Sep 2008)
New Revision: 9030
Modified:
trunk/src/main/org/jboss/seam/deployment/GroovyHotDeploymentStrategy.java
Log:
Fix testsuite
Modified: trunk/src/main/org/jboss/seam/deployment/GroovyHotDeploymentStrategy.java
===================================================================
--- trunk/src/main/org/jboss/seam/deployment/GroovyHotDeploymentStrategy.java 2008-09-19
11:58:50 UTC (rev 9029)
+++ trunk/src/main/org/jboss/seam/deployment/GroovyHotDeploymentStrategy.java 2008-09-19
12:10:35 UTC (rev 9030)
@@ -34,13 +34,17 @@
public GroovyHotDeploymentStrategy(ClassLoader classLoader, File hotDeployDirectory,
boolean enabled)
{
super(classLoader, hotDeployDirectory, enabled);
- groovyDeploymentHandler = new GroovyDeploymentHandler(DEFAULT_SCRIPT_EXTENSION);
- getDeploymentHandlers().put(GroovyDeploymentHandler.NAME,
groovyDeploymentHandler);
+ if (enabled)
+ {
+ groovyDeploymentHandler = new
GroovyDeploymentHandler(DEFAULT_SCRIPT_EXTENSION);
+ getDeploymentHandlers().put(GroovyDeploymentHandler.NAME,
groovyDeploymentHandler);
+ }
}
@Override
public ClassLoader getClassLoader()
{
+ System.out.println(classLoader + "/" + super.getClassLoader());
if (classLoader == null && super.getClassLoader() != null)
{
this.classLoader = new GroovyClassLoader(super.getClassLoader());