commit | 296888269ef994a444555101d28e5211e89ccb9a | [log] [tgz] |
---|---|---|
author | Pierre De Rop <pderop@apache.org> | Sat Feb 20 23:33:32 2010 +0000 |
committer | Pierre De Rop <pderop@apache.org> | Sat Feb 20 23:33:32 2010 +0000 |
tree | 0a19c0b641dd8df3098aa5e3a428b58353d0a6bc | |
parent | b745560cd12cc489dcd94200fffe699316792699 [diff] |
check if the system tmpdir already exists git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@912253 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/test/src/test/java/org/apache/felix/dm/test/BundleGenerator.java b/dependencymanager/test/src/test/java/org/apache/felix/dm/test/BundleGenerator.java index 9bde228..af964ce 100644 --- a/dependencymanager/test/src/test/java/org/apache/felix/dm/test/BundleGenerator.java +++ b/dependencymanager/test/src/test/java/org/apache/felix/dm/test/BundleGenerator.java
@@ -73,6 +73,13 @@ { try { + // Check if the system tmp dir exists + + File tmp = new File(System.getProperty("java.io.tmpdir")); + if (tmp != null && ! tmp.exists()) { + tmp.mkdirs(); + } + // Deduce the classpath from Export-Package, or Private-Package headers. String pkg = _directives.getProperty("Export-Package");