You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2014/12/03 00:51:42 UTC

tomee git commit: Create the cache directory if it doesn't already exist

Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 0f2d8812b -> e1c3b6008


Create the cache directory if it doesn't already exist


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/e1c3b600
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/e1c3b600
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/e1c3b600

Branch: refs/heads/tomee-1.7.x
Commit: e1c3b60089151b3c42d3ab895a05ad9ab9b3353c
Parents: 0f2d881
Author: Jonathan Gallimore <jg...@tomitribe.com>
Authored: Tue Dec 2 23:49:29 2014 +0000
Committer: Jonathan Gallimore <jg...@tomitribe.com>
Committed: Tue Dec 2 23:49:29 2014 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/openejb/loader/ProvisioningUtil.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/e1c3b600/container/openejb-loader/src/main/java/org/apache/openejb/loader/ProvisioningUtil.java
----------------------------------------------------------------------
diff --git a/container/openejb-loader/src/main/java/org/apache/openejb/loader/ProvisioningUtil.java b/container/openejb-loader/src/main/java/org/apache/openejb/loader/ProvisioningUtil.java
index 141791a..b7b033c 100644
--- a/container/openejb-loader/src/main/java/org/apache/openejb/loader/ProvisioningUtil.java
+++ b/container/openejb-loader/src/main/java/org/apache/openejb/loader/ProvisioningUtil.java
@@ -74,7 +74,9 @@ public final class ProvisioningUtil {
     }
 
     public static File cacheFile(final String path) {
-        return new File(SystemInstance.get().getBase().getDirectory(), cache() + File.separator + path);
+        File cacheDir = new File(SystemInstance.get().getBase().getDirectory(), cache());
+        cacheDir.mkdirs();
+        return new File(cacheDir, path);
     }
 
     public static String copyTryingProxies(final URI source, final File destination) throws Exception {