/** * Sets the cacheDir. * * @param cacheDir The cacheDir to set * @throws ConfigurationException if the cache directory cannot be created */ public static void setCacheDir(String cacheDir) throws ConfigurationException { if (!cacheDir.endsWith(FileUtils.getDirSeparator())) { cacheDir += FileUtils.getDefaultDirSeparator(); } final File cDir = new File(cacheDir); if (!cDir.exists() && !cDir.mkdirs()) { throw new ConfigurationException("Can't create cache directory: " + cacheDir); } SvnConfigurationOptions.cacheDir = cacheDir; }