[jboss-cvs] jboss-seam/src/main/org/jboss/seam/init ...
Norman Richards
norman.richards at jboss.com
Fri Jun 8 00:14:16 EDT 2007
User: nrichards
Date: 07/06/08 00:14:16
Modified: src/main/org/jboss/seam/init Initialization.java
Log:
JBSEAM-1420: handle missing /WEB-INF/dev directory
Revision Changes Path
1.173 +10 -2 jboss-seam/src/main/org/jboss/seam/init/Initialization.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Initialization.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/init/Initialization.java,v
retrieving revision 1.172
retrieving revision 1.173
diff -u -b -r1.172 -r1.173
--- Initialization.java 18 May 2007 16:27:06 -0000 1.172
+++ Initialization.java 8 Jun 2007 04:14:16 -0000 1.173
@@ -56,7 +56,7 @@
/**
* @author Gavin King
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
- * @version $Revision: 1.172 $
+ * @version $Revision: 1.173 $
*/
public class Initialization
{
@@ -533,7 +533,15 @@
private RedeployableStrategy getRedeployableInitialization()
{
- File hotDeployDir = new File( servletContext.getRealPath("/WEB-INF/dev") );
+ String dirName = servletContext.getRealPath("/WEB-INF/dev");
+
+ if (dirName == null) {
+ log.debug("Could not find path for /WEB-INF/dev");
+ return new NoHotRedeployable(null);
+ }
+
+ File hotDeployDir = new File(dirName);
+
String strategy = getRedeployableStrategyName(hotDeployDir);
try
{
More information about the jboss-cvs-commits
mailing list