public final class SvnUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkAuthentication(String strUrl,
String strUserName,
String strPassword)
Check authentication.
|
static void |
doCommit(String strPathFile,
String strCommitMessage,
ReleaseSvnCommitClient commitClient)
Commit.
|
static Long |
doSvnCheckout(String strUrl,
String strCheckoutBaseSitePath,
ReleaseSvnCheckoutClient updateClient,
CommandResult result)
Do svn checkout.
|
static String |
doTagSite(String strSiteName,
String strTagName,
String strSrcURL,
String strDstURL,
org.tmatesoft.svn.core.wc.SVNCopyClient copyClient)
Tag un site.
|
static Long |
getLastRevision(String strRepoPath,
String strUserName,
String strPassword)
Gets the last revision.
|
static String |
getRepoUrl(String strRepoUrl)
Gets the repo url.
|
static fr.paris.lutece.util.ReferenceList |
getSvnSites(String strUrlSite,
org.tmatesoft.svn.core.wc.SVNClientManager clientManager)
Gets the svn sites.
|
static String |
getSvnUrlTagSite(String strScmUrl,
String strTagName)
Gets the svn url tag site.
|
static void |
init()
Initialise les diff�rentes factory pour le svn.
|
static void |
revert(String strRepoPath,
String strCmUrl,
String strUserName,
String strPassword,
Long revCurrentCommit,
Long lRevertCommit)
Revert.
|
static void |
update(String strRepoPath,
String strUserName,
String strPassword)
Update.
|
public static void init()
public static void doCommit(String strPathFile, String strCommitMessage, ReleaseSvnCommitClient commitClient) throws org.tmatesoft.svn.core.SVNException
strPathFile - the str path filestrCommitMessage - the str commit messagecommitClient - the commit clientorg.tmatesoft.svn.core.SVNException - the SVN exceptionpublic static String doTagSite(String strSiteName, String strTagName, String strSrcURL, String strDstURL, org.tmatesoft.svn.core.wc.SVNCopyClient copyClient) throws org.tmatesoft.svn.core.SVNException
strSiteName - le nom du sitestrTagName - le nom du tagstrSrcURL - the str src URLstrDstURL - the str dst URLcopyClient - le client svn permettant la copieorg.tmatesoft.svn.core.SVNException - the SVN exceptionpublic static Long doSvnCheckout(String strUrl, String strCheckoutBaseSitePath, ReleaseSvnCheckoutClient updateClient, CommandResult result) throws org.tmatesoft.svn.core.SVNException
strUrl - the str urlstrCheckoutBaseSitePath - the str checkout base site pathupdateClient - the update clientresult - the resultorg.tmatesoft.svn.core.SVNException - the SVN exceptionpublic static fr.paris.lutece.util.ReferenceList getSvnSites(String strUrlSite, org.tmatesoft.svn.core.wc.SVNClientManager clientManager) throws org.tmatesoft.svn.core.SVNException
strUrlSite - the str url siteclientManager - the client managerorg.tmatesoft.svn.core.SVNException - the SVN exceptionpublic static Long getLastRevision(String strRepoPath, String strUserName, String strPassword)
strRepoPath - the str repo pathstrUserName - the str user namestrPassword - the str passwordpublic static void update(String strRepoPath, String strUserName, String strPassword)
strRepoPath - the str repo pathstrUserName - the str user namestrPassword - the str passwordpublic static void revert(String strRepoPath, String strCmUrl, String strUserName, String strPassword, Long revCurrentCommit, Long lRevertCommit)
strRepoPath - the str repo pathstrCmUrl - the str cm urlstrUserName - the str user namestrPassword - the str passwordrevCurrentCommit - the rev current commitlRevertCommit - the l revert commitpublic static String getSvnUrlTagSite(String strScmUrl, String strTagName)
strScmUrl - the str scm urlstrTagName - the str tag namepublic static String getRepoUrl(String strRepoUrl)
strRepoUrl - the str repo urlCopyright © 2023 City of Paris. All rights reserved.