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");