Package fr.ifremer.isisfish.vcs
Class VCSFactory
java.lang.Object
fr.ifremer.isisfish.vcs.VCSFactory
Permet de recupere le bon VCS en fonction de la configuration.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- poussin
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VCS
createPublicVCS
(IsisConfig config) Create VCS to manage community VCS repository.static VCS
createVCS
(IsisConfig config) VCS factory, looking for vcs.type key in config to find vcs class to used.protected static VCS
makeVCSInstance
(String classname, File dataDir, String protocol, String host, String path, File sshKeyFile, String login, String password) Make CSV instance.
-
Field Details
-
TYPE_ALIASES
-
-
Method Details
-
createVCS
VCS factory, looking for vcs.type key in config to find vcs class to used. If no vcs.type found or is not valid class, useVCSNone
.- Parameters:
config
- config- Returns:
- usable VCS
-
createPublicVCS
Create VCS to manage community VCS repository.- Parameters:
config
- config- Returns:
- usable VCS
-
makeVCSInstance
protected static VCS makeVCSInstance(String classname, File dataDir, String protocol, String host, String path, File sshKeyFile, String login, String password) Make CSV instance.- Parameters:
classname
- class namedataDir
- root data dirprotocol
- protocolhost
- hostpath
- pathsshKeyFile
- ssh key filelogin
- loginpassword
- password- Returns:
- CSV instance
-