Author: pete.muir(a)jboss.org
Date: 2008-09-19 07:20:31 -0400 (Fri, 19 Sep 2008)
New Revision: 9027
Modified:
trunk/src/main/org/jboss/seam/deployment/HotDeploymentStrategy.java
Log:
JBSEAM-3399
Modified: trunk/src/main/org/jboss/seam/deployment/HotDeploymentStrategy.java
===================================================================
--- trunk/src/main/org/jboss/seam/deployment/HotDeploymentStrategy.java 2008-09-19
10:42:22 UTC (rev 9026)
+++ trunk/src/main/org/jboss/seam/deployment/HotDeploymentStrategy.java 2008-09-19
11:20:31 UTC (rev 9027)
@@ -63,9 +63,9 @@
if (enabled)
{
this.classLoader = Thread.currentThread().getContextClassLoader();
- initHotDeployClassLoader(classLoader, hotDeployDirectory);
if (hotDeployDirectory != null && hotDeployDirectory.exists())
{
+ initHotDeployClassLoader(classLoader, hotDeployDirectory);
componentDeploymentHandler = new ComponentDeploymentHandler();
getDeploymentHandlers().put(ComponentDeploymentHandler.NAME,
componentDeploymentHandler);
annotationDeploymentHandler = new
AnnotationDeploymentHandler(getPropertyValues(AnnotationDeploymentHandler.ANNOTATIONS_KEY),
classLoader);
@@ -79,13 +79,10 @@
{
try
{
- if (hotDeployDirectory != null)
- {
- URL url = hotDeployDirectory.toURL();
- URL[] urls = { url };
- hotDeployClassLoader = new URLClassLoader(urls, classLoader);
- getFiles().add(hotDeployDirectory);
- }
+ URL url = hotDeployDirectory.toURL();
+ URL[] urls = { url };
+ hotDeployClassLoader = new URLClassLoader(urls, classLoader);
+ getFiles().add(hotDeployDirectory);
}
catch (MalformedURLException mue)
{
Show replies by date