Package it.eng.spagobi.utilities

Examples of it.eng.spagobi.utilities.SpagoBIAccessUtils.deleteDirectory()


      try {
        File tmpDir = getCacheDir(prefixDirTemplate);
        String[] files = tmpDir.list();
        if (files.length == 0){
          SpagoBIAccessUtils util = new SpagoBIAccessUtils();
          util.deleteDirectory(tmpDir);
          logger.debug("Delating temporary directory: " + tmpDir);
        }
      } catch (Throwable t) {
        logger.error("Error while deleting cache dir content", t);
      }
View Full Code Here


      // delete tmp dir for dynamic template management only if it's empty (without subreport files)
      //File tmpDir = getJRTempDir(servletContext, executionId, prefixDirTemplate).getParentFile(); 
      File tmpDir = getJRTempDir(servletContext, prefixDirTemplate);
      String[] files = tmpDir.list();
      if (files.length == 0){
        util.deleteDirectory(tmpDir);
        logger.debug("Delating temporary directory: " + tmpDir);
      }
      monitor.stop();
      logger.debug("OUT");
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.