|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VCS
Version control system.
| Nested Class Summary | |
|---|---|
static class |
VCS.Status
VCS Status type. |
| Field Summary | |
|---|---|
static java.lang.String |
TYPE_CVS
CVS VCS Type |
static java.lang.String |
TYPE_NONE
None CVS Type |
static java.lang.String |
TYPE_SVN
SVN VCS Type |
static java.lang.String |
VCS_HOST_NAME
remote server adresse (ip or serveur name) ex: labs.libre-entreprise.org |
static java.lang.String |
VCS_PATH
remote repository path ex: /svnroot/isis-fish-data |
static java.lang.String |
VCS_PROTOCOL
can be http, ssh, pserver, ... |
static java.lang.String |
VCS_TYPE
can be None, CVS or SVN. only None or SVN work |
static java.lang.String |
VCS_USER_NAME
user login to access vcs ex: bpoussin |
static java.lang.String |
VCS_USER_PASSWORD
user passwd or passphrase (protocol dependent) to access vcs ex: xxxxxxxx |
| Method Summary | |
|---|---|
void |
add(java.util.List<java.io.File> files,
java.lang.String msg)
Add and commit file in server repository. |
void |
addVetoableActionListener(VetoableActionListener l)
Ajout un listener pouvant interdire les actions du vcs |
java.util.List<java.io.File> |
checkFileStatus()
Verifie si tous les fichiers du repository local sont les dernieres version par rapport au serveur. |
void |
checkout(org.nuiton.util.Version tag,
boolean recurse)
get repository on server and put it in localdir. |
void |
checkProtocol()
Verifie la connexion et si le protocole a change, switch le repository pour utiliser le nouveau protocole. |
void |
cleanup(java.io.File path)
Cleanup a directory, removing all lock. |
void |
commit(java.util.List<java.io.File> files,
java.lang.String msg)
Commit specified files, if files is null, all files are committed. |
void |
delete(java.util.List<java.io.File> files,
java.lang.String msg)
Delete and commit files in server repository. |
java.util.Map<java.io.File,java.lang.String> |
getChanglog(java.util.List<java.io.File> files)
Return all changelog between local file version and remote repository file version. |
java.lang.String |
getDiff(java.io.File file)
show diff between local file and repository file. |
java.util.List<java.lang.String> |
getFileList(java.io.File directory)
Return list of all file on directory on remote server. |
java.lang.String |
getHost()
Get host. |
java.io.File |
getLocalRepository()
Get local repository directory |
VCS.Status |
getLocalStatus(java.io.File file)
Get file local status. |
java.lang.String |
getLogin()
Get login. |
java.lang.String |
getPassword()
Get password. |
java.lang.String |
getPath()
Get repository path. |
java.lang.String |
getProtocol()
Get protocol. |
java.io.File |
getSshKeyFile()
Get ssh key file. |
java.lang.String |
getTag()
Retourne le tag reellement utilise, par exemple si on a fait un setTag(3.2.0) cette methode retourne "/tags/3.2.0", pour setTag(null) on retourne "/trunk" |
java.util.List<java.io.File> |
getUpdatedFile()
get list of new or modified files on server. |
boolean |
haveUpdate()
Ask if there are some new or modified files on server. |
boolean |
isConnected()
Get connection state. |
boolean |
isOnRemote(java.io.File file)
Check if file is available on server. |
boolean |
isTag(org.nuiton.util.Version version)
Look on server if version is tag repository. |
boolean |
isUpToDate(java.io.File file)
Check if file is up-to-date. |
boolean |
isValidLocalRepository()
Return true, if local repository is valid repository for actual vcs. |
boolean |
isVersionnableFile(java.io.File file)
Check if file can be put in vcs repository. |
boolean |
isWriteable()
Return true, if local repository is writable. |
void |
remoteVetoableActionListener(VetoableActionListener l)
Supprime un listener pouvant interdire les actions du vcs |
void |
setHost(java.lang.String host)
Change host. |
void |
setLogin(java.lang.String login)
Change login. |
void |
setPassword(java.lang.String password)
Change password. |
void |
setPath(java.lang.String path)
Change path. |
void |
setProtocol(java.lang.String protocol)
Change protocol. |
void |
setSshKeyFile(java.io.File sshKeyFile)
Change ssk key file to use. |
java.util.List<java.io.File> |
setTag(org.nuiton.util.Version version)
Change repository tag, used when we use some tag and we want to go to trunk. |
void |
setWriteable(boolean value)
Permit to force repository to read-only if value is false, otherwise use normal rules. |
java.util.List<java.io.File> |
update(java.io.File file,
boolean recurse)
Update file. |
| Methods inherited from interface java.io.FileFilter |
|---|
accept |
| Field Detail |
|---|
static final java.lang.String TYPE_CVS
static final java.lang.String TYPE_NONE
static final java.lang.String TYPE_SVN
static final java.lang.String VCS_TYPE
static final java.lang.String VCS_PROTOCOL
static final java.lang.String VCS_HOST_NAME
static final java.lang.String VCS_PATH
static final java.lang.String VCS_USER_NAME
static final java.lang.String VCS_USER_PASSWORD
| Method Detail |
|---|
void addVetoableActionListener(VetoableActionListener l)
l - listener to addvoid remoteVetoableActionListener(VetoableActionListener l)
l - listener to removejava.io.File getLocalRepository()
boolean isValidLocalRepository()
boolean isWriteable()
throws VCSException
VCSExceptionvoid setWriteable(boolean value)
value - writable
void cleanup(java.io.File path)
throws VCSException
path - path to cleanup
VCSException
void commit(java.util.List<java.io.File> files,
java.lang.String msg)
throws VCSException
files - files to commitmsg - message used to commit
VCSException
void add(java.util.List<java.io.File> files,
java.lang.String msg)
throws VCSException
files - list of file to addmsg - message for commit
VCSException
void checkout(org.nuiton.util.Version tag,
boolean recurse)
throws VCSException
tag - tag to used, null = /trunk other is tags/[tag]recurse - if file is directory checkout sub file
VCSException
void delete(java.util.List<java.io.File> files,
java.lang.String msg)
throws VCSException
files - file to deletemsg - message for commit
VCSException
java.util.Map<java.io.File,java.lang.String> getChanglog(java.util.List<java.io.File> files)
throws VCSException
files -
VCSException
java.lang.String getDiff(java.io.File file)
throws VCSException
file - file to get diff
VCSException
VCS.Status getLocalStatus(java.io.File file)
throws VCSException
file - file to get status
VCSException
java.util.List<java.lang.String> getFileList(java.io.File directory)
throws VCSException
directory -
VCSException
java.util.List<java.io.File> getUpdatedFile()
throws VCSException
VCSException
boolean haveUpdate()
throws VCSException
VCSExceptionboolean isConnected()
boolean isOnRemote(java.io.File file)
throws VCSException
file - file to check
VCSException
boolean isTag(org.nuiton.util.Version version)
throws VCSException
version - version number like 3.2
VCSException
boolean isUpToDate(java.io.File file)
throws VCSException
file - file to check
VCSExceptionboolean isVersionnableFile(java.io.File file)
default refused .svn, CVS and ~ filename Must be override, this default implementation return true.
file -
true if file is versionnable
java.util.List<java.io.File> update(java.io.File file,
boolean recurse)
throws VCSException
file - files to updaterecurse -
VCSException
void checkProtocol()
throws VCSException
VCSException
java.util.List<java.io.File> checkFileStatus()
throws VCSException
VCSExceptionjava.lang.String getHost()
java.lang.String getLogin()
java.lang.String getPassword()
java.lang.String getPath()
java.lang.String getProtocol()
java.io.File getSshKeyFile()
java.lang.String getTag()
throws VCSException
VCSException
java.util.List<java.io.File> setTag(org.nuiton.util.Version version)
throws VCSException
version - version to go, if null trunk is used, otherwize
tags/version is used
VCSException
void setHost(java.lang.String host)
throws VCSException
host - new host.
VCSException
void setLogin(java.lang.String login)
throws VCSException
login - new login
VCSExceptionvoid setPassword(java.lang.String password)
password - password
void setPath(java.lang.String path)
throws VCSException
path - new path
VCSException
void setProtocol(java.lang.String protocol)
throws VCSException
protocol -
VCSExceptionvoid setSshKeyFile(java.io.File sshKeyFile)
sshKeyFile - new ssh kay file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||