public class VCSNone extends AbstractVCS
VCS.Statushost, listeners, localRepository, login, password, path, protocol, sshKeyFile, writeableTYPE_CVS, TYPE_NONE, TYPE_SVN, VCS_HOST_NAME, VCS_PATH, VCS_PROTOCOL, VCS_TYPE, VCS_USER_NAME, VCS_USER_PASSWORD| Constructor and Description |
|---|
VCSNone(File localRepository,
String protocol,
String host,
String path,
File sshKeyFile,
String login,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(List<File> files,
String msg)
Add and commit file in server repository
|
List<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 b)
Get repository module on server and put it in destDir.
|
void |
checkPath() |
void |
checkProtocol()
Verifie la connexion et si le protocole a change, switch le repository
pour utiliser le nouveau protocole.
|
void |
cleanup(File path)
Cleanup a directory, removing all lock.
|
void |
commit(List<File> files,
String msg)
Commit specified files, if files is null, all files are committed.
|
void |
delete(List<File> files,
String msg)
Delete and commit files in server repository
|
Map<File,String> |
getChanglog(List<File> files)
Return all changelog between local file version and remote repository
file version
|
String |
getDiff(File file)
Show diff between local file and repository file.
|
List<String> |
getFileList(File directory)
Return list of all file on directory on remote server.
|
VCS.Status |
getLocalStatus(File file)
Get file local status.
|
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"
|
List<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(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(File file)
Check if file is uptodate
|
boolean |
isValidLocalRepository()
Return true, if local repository is valid repository for actual vcs.
|
boolean |
isWriteable()
Return true, if local repository is writable.
|
List<File> |
setTag(org.nuiton.util.Version version)
Change repository tag, used when we use some tag and we want to go to
trunk.
|
List<File> |
update(File file,
boolean recurse)
Update file
|
accept, addVetoableActionListener, fireAction, getHost, getLocalRepository, getLogin, getPassword, getPath, getProtocol, getSshKeyFile, isVersionnableFile, remoteVetoableActionListener, setHost, setLocalRepository, setLogin, setPassword, setPath, setProtocol, setSshKeyFile, setWriteablepublic boolean isValidLocalRepository()
VCSpublic boolean isTag(org.nuiton.util.Version version)
throws VCSException
version - version number like 3.2VCSExceptionpublic boolean haveUpdate()
throws VCSException
VCSExceptionpublic List<File> getUpdatedFile() throws VCSException
VCSExceptionpublic Map<File,String> getChanglog(List<File> files)
files - public void cleanup(File path) throws VCSException
VCSpath - path to cleanupVCSExceptionpublic void commit(List<File> files, String msg) throws VCSException
VCSfiles - files to commitmsg - message used to commitVCSExceptionpublic void add(List<File> files, String msg) throws VCSException
files - list of file to addmsg - message for commitVCSExceptionpublic void checkout(org.nuiton.util.Version tag,
boolean b)
throws VCSException
tag - destination directoryb - VCSExceptionpublic void delete(List<File> files, String msg) throws VCSException
files - file to deletemsg - message for commitVCSExceptionpublic String getDiff(File file) throws VCSException
file - VCSExceptionpublic VCS.Status getLocalStatus(File file) throws VCSException
VCSfile - file to get statusVCSExceptionpublic List<String> getFileList(File directory) throws VCSException
directory - VCSExceptionpublic boolean isConnected()
public boolean isOnRemote(File file) throws VCSException
file - file to checkVCSExceptionpublic boolean isUpToDate(File file) throws VCSException
file - file to checkVCSExceptionpublic List<File> update(File file, boolean recurse) throws VCSException
file - file to updateVCSExceptionpublic void checkProtocol()
throws VCSException
VCSVCSExceptionpublic void checkPath()
throws VCSException
VCSExceptionpublic List<File> checkFileStatus() throws VCSException
VCSVCSExceptionpublic boolean isWriteable()
throws VCSException
VCSVCSExceptionpublic List<File> setTag(org.nuiton.util.Version version) throws VCSException
VCSversion - version to go, if null trunk is used, otherwize
tags/version is usedVCSExceptionpublic String getTag() throws VCSException
VCSVCSExceptionCopyright © 1999-2012 CodeLutin. All Rights Reserved.