[jboss-cvs] JBossAS SVN: r101567 - branches/vfs3-int/server/src/main/java/org/jboss/web/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Feb 26 13:00:55 EST 2010


Author: johnbailey
Date: 2010-02-26 13:00:54 -0500 (Fri, 26 Feb 2010)
New Revision: 101567

Modified:
   branches/vfs3-int/server/src/main/java/org/jboss/web/deployers/AbstractWarDeployer.java
Log:
[JBAS-7350] - Another VFS3 integration update

Modified: branches/vfs3-int/server/src/main/java/org/jboss/web/deployers/AbstractWarDeployer.java
===================================================================
--- branches/vfs3-int/server/src/main/java/org/jboss/web/deployers/AbstractWarDeployer.java	2010-02-26 17:59:58 UTC (rev 101566)
+++ branches/vfs3-int/server/src/main/java/org/jboss/web/deployers/AbstractWarDeployer.java	2010-02-26 18:00:54 UTC (rev 101567)
@@ -420,11 +420,11 @@
                      altDD = topUnit.getFile(altDDPath);
                      if (altDD == null)
                         throw new DeploymentException("Unable to resolve " + altDDPath + " as a deployment path");
-                     File webInf = new File(expWarUrl.toURI());
-                     File altDDFile = new File(webInf, "WEB-INF/" + altDD.getName());
+                     
+                     VirtualFile altDDFile = root.getChild("WEB-INF/" + altDD.getName());
                      log.debug("Copying the altDD to: " + altDDFile);
-                     Files.copy(altDD.toURL(), altDDFile);
-                     metaData.setAlternativeDD(altDDFile.getAbsolutePath());
+                     VFSUtils.writeFile(altDDFile, altDD.openStream());
+                     metaData.setAlternativeDD(altDDFile.getPathName());
                   }
                }
             }




More information about the jboss-cvs-commits mailing list