commit | 9f0cbabcae8f317aeb0f7f425827ce610c6d066a | [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 | 1a8c2e31b2d12d2ad1bb4278efe291ce73b043b4 [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");