Author: gdamour Date: Sat Mar 12 15:00:55 2005 New Revision: 157294 URL: http://svn.apache.org/viewcvs?view=rev&rev=157294 Log: GERONIMO-602 submitted by Sandip Ghayal.
Ear deployment fails when EJB Jar is in subdirectory Modified: geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/util/DeploymentUtil.java Modified: geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/util/DeploymentUtil.java URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/util/DeploymentUtil.java?view=diff&r1=157293&r2=157294 ============================================================================== --- geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/util/DeploymentUtil.java (original) +++ geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/util/DeploymentUtil.java Sat Mar 12 15:00:55 2005 @@ -70,6 +70,11 @@ } public static void copyFile(File source, File destination) throws IOException { + File destinationDir = destination.getParentFile(); + if (false == destinationDir.exists() && false == destinationDir.mkdirs()) { + throw new java.io.IOException("Cannot create directory : " + destinationDir); + } + InputStream in = null; OutputStream out = null; try {