Author: chatellier Date: 2011-06-14 13:20:31 +0000 (Tue, 14 Jun 2011) New Revision: 3391 Log: Add second getter for community vcs Modified: isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/datastore/VersionStorage.java Modified: isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/datastore/VersionStorage.java =================================================================== --- isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/datastore/VersionStorage.java 2011-06-09 16:42:29 UTC (rev 3390) +++ isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/datastore/VersionStorage.java 2011-06-14 13:20:31 UTC (rev 3391) @@ -44,7 +44,7 @@ import fr.ifremer.isisfish.vcs.VCSException; /** - * Classe permettant de géré l'interaction avec le VSC. + * Classe permettant de géré l'interaction avec le VCS. * * @author poussin * @version $Revision$ @@ -82,14 +82,21 @@ * * In simulation context, must look for files in simulation directory * instead of isis database. - * - * TODO better place in other storage, but needed for region anad java scrits */ protected static File getContextDatabaseDirectory() { return IsisFish.config.getContextDatabaseDirectory(); } /** + * Return community database directory. + * + * @return community database directory + */ + protected static File getCommunityDatabaseDirectory() { + return IsisFish.config.getCommunityDatabaseDirectory(); + } + + /** * Get cache storage key to use depending on context storage used. * * Two simulation must have their own cache. @@ -111,6 +118,15 @@ protected static VCS getVCS() { return IsisFish.vcs; } + + /** + * Get community {@link VCS}. + * + * @return community VCS + */ + protected static VCS getCommunityVCS() { + return IsisFish.communityVcs; + } /** * Permet de demander la preparation des fichiers pour etre envoyé vers le VCS. @@ -344,6 +360,9 @@ if (getVCS().isVersionnableFile(f)) { result.add(f.getName()); } + else if (getCommunityVCS().isVersionnableFile(f)) { + result.add(f.getName()); + } } } Collections.sort(result);