geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsis...@apache.org
Subject svn commit: r394033 - /geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/configuration/ExecutableConfigurationUtil.java
Date Fri, 14 Apr 2006 06:40:20 GMT
Author: jsisson
Date: Thu Apr 13 23:40:18 2006
New Revision: 394033

URL: http://svn.apache.org/viewcvs?rev=394033&view=rev
Log:
GERONIMO-1847 - FileNotFoundException when installing car into repository with packaging plugin
when parent directories not created.

Modified:
    geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/configuration/ExecutableConfigurationUtil.java

Modified: geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/configuration/ExecutableConfigurationUtil.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/configuration/ExecutableConfigurationUtil.java?rev=394033&r1=394032&r2=394033&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/configuration/ExecutableConfigurationUtil.java
(original)
+++ geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/configuration/ExecutableConfigurationUtil.java
Thu Apr 13 23:40:18 2006
@@ -48,6 +48,11 @@
 
     public static void createExecutableConfiguration(ConfigurationData configurationData,
Manifest manifest, File destinationFile) throws IOException {
         File configurationDir = configurationData.getConfigurationDir();
+        
+        // ensure parent directories have been created
+        File parent = destinationFile.getParentFile();
+        if (parent != null && !parent.exists()) parent.mkdirs();
+        
         JarOutputStream out = null;
         try {
             byte[] buffer = new byte[4096];



Mime
View raw message