Author: chatellier Date: 2011-06-16 16:15:05 +0000 (Thu, 16 Jun 2011) New Revision: 3414 Log: Oubli?\195?\169 les exports Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptAction.java isis-fish/trunk/src/main/resources/log4j.properties Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java =================================================================== --- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java 2011-06-16 16:01:05 UTC (rev 3413) +++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java 2011-06-16 16:15:05 UTC (rev 3414) @@ -116,21 +116,38 @@ } /** - * Retourne le storage pour la regle demandée + * Retourne le storage pour l'export demandée * - * @param name le nom de la regle souhaitée - * @return Le storage pour la regle + * @param name le nom de l'export souhaitée + * @return Le storage pour l'export */ public static ExportStorage getExport(String name) { String cacheName = getContextDatabaseCacheKey(name); ExportStorage result = scriptsCache.get(cacheName); if (result == null) { - result = new ExportStorage(IsisFish.config.getContextDatabaseDirectory(), + result = new ExportStorage(getContextDatabaseDirectory(), getExportDirectory(), name); scriptsCache.put(cacheName, result); } return result; } + + /** + * Retourne le storage pour l'export demandée + * + * @param name le nom de l'export souhaitée + * @return Le storage pour l'export + */ + public static ExportStorage getCommunityExport(String name) { + String cacheName = getCommunityDatabaseCacheKey(name); + ExportStorage result = scriptsCache.get(cacheName); + if (result == null) { + result = new ExportStorage(getCommunityDatabaseDirectory(), + getCommunityExportDirectory(), name); + scriptsCache.put(cacheName, result); + } + return result; + } /** * Retourne la liste des noms de toutes les régions disponible en local Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptAction.java =================================================================== --- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptAction.java 2011-06-16 16:01:05 UTC (rev 3413) +++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptAction.java 2011-06-16 16:15:05 UTC (rev 3414) @@ -464,7 +464,7 @@ script = AnalysePlanStorage.getCommunityAnalysePlan(file.getName()); break; case CommunityExport: - script = RuleStorage.getCommunityRule(file.getName()); + script = ExportStorage.getCommunityExport(file.getName()); break; case CommunityScript: script = ScriptStorage.getCommunityScript(file.getName()); Modified: isis-fish/trunk/src/main/resources/log4j.properties =================================================================== --- isis-fish/trunk/src/main/resources/log4j.properties 2011-06-16 16:01:05 UTC (rev 3413) +++ isis-fish/trunk/src/main/resources/log4j.properties 2011-06-16 16:15:05 UTC (rev 3414) @@ -41,3 +41,6 @@ log4j.logger.sensitivity=INFO log4j.logger.sensitivityexports=INFO log4j.logger.simulators=INFO + +log4j.logger.fr.ifremer.isisfish.datastore=DEBUG +log4j.logger.fr.ifremer.isisfish.vcs=DEBUG