From 6fc7d982311e1a0317e820ce142d6c3811e846ad Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Mon, 15 Mar 2010 14:09:47 +0000
Subject: [PATCH] SE-227 remove print statement, create cache folders when
 needed

SVN: 15150
---
 .../phosphonetx/server/business/DAOFactoryWithCache.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java
index a70b57d86da..cccf278d6f7 100644
--- a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java
+++ b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java
@@ -100,11 +100,11 @@ class DAOFactoryWithCache implements IPhosphoNetXDAOFactory
             FileBasedDataSetLoader(File store)
             {
                 this.store = store;
-                store.mkdirs();
             }
             
             void save(String experimentPermID, DataSet<T> dataSet)
             {
+                store.mkdirs();
                 File file = new File(store, experimentPermID);
                 ObjectOutputStream outputStream = null;
                 try
@@ -123,6 +123,7 @@ class DAOFactoryWithCache implements IPhosphoNetXDAOFactory
             @SuppressWarnings("unchecked")
             public DataSet<T> load(String experimentPermID)
             {
+                store.mkdirs();
                 File file = new File(store, experimentPermID);
                 if (file.exists() == false)
                 {
@@ -217,7 +218,6 @@ class DAOFactoryWithCache implements IPhosphoNetXDAOFactory
 
         ProteinQueryDAO(final IProteinQueryDAO dao, String typeOfCaching)
         {
-            System.getProperties().list(System.out);
             this.dao = dao;
             listProteinsByExperimentCache =
                     new ResultSetCache<ProteinReferenceWithProbability>("listProteinsByExperiment", typeOfCaching, 
-- 
GitLab