Class SvnUtils
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.util.svn.SvnUtils
-
public final class SvnUtils extends java.lang.ObjectThe Class SvnUtils.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckAuthentication(java.lang.String strUrl, java.lang.String strUserName, java.lang.String strPassword)Check authentication.static voiddoCommit(java.lang.String strPathFile, java.lang.String strCommitMessage, ReleaseSvnCommitClient commitClient)Commit.static java.lang.LongdoSvnCheckout(java.lang.String strUrl, java.lang.String strCheckoutBaseSitePath, ReleaseSvnCheckoutClient updateClient, CommandResult result)Do svn checkout.static java.lang.StringdoTagSite(java.lang.String strSiteName, java.lang.String strTagName, java.lang.String strSrcURL, java.lang.String strDstURL, org.tmatesoft.svn.core.wc.SVNCopyClient copyClient)Tag un site.static java.lang.LonggetLastRevision(java.lang.String strRepoPath, java.lang.String strUserName, java.lang.String strPassword)Gets the last revision.static java.lang.StringgetRepoUrl(java.lang.String strRepoUrl)Gets the repo url.static fr.paris.lutece.util.ReferenceListgetSvnSites(java.lang.String strUrlSite, org.tmatesoft.svn.core.wc.SVNClientManager clientManager)Gets the svn sites.static java.lang.StringgetSvnUrlTagSite(java.lang.String strScmUrl, java.lang.String strTagName)Gets the svn url tag site.static voidinit()Initialise les diff�rentes factory pour le svn.static voidrevert(java.lang.String strRepoPath, java.lang.String strCmUrl, java.lang.String strUserName, java.lang.String strPassword, java.lang.Long revCurrentCommit, java.lang.Long lRevertCommit)Revert.static voidupdate(java.lang.String strRepoPath, java.lang.String strUserName, java.lang.String strPassword)Update.
-
-
-
Method Detail
-
init
public static void init()
Initialise les diff�rentes factory pour le svn.
-
doCommit
public static void doCommit(java.lang.String strPathFile, java.lang.String strCommitMessage, ReleaseSvnCommitClient commitClient) throws org.tmatesoft.svn.core.SVNExceptionCommit.- Parameters:
strPathFile- the str path filestrCommitMessage- the str commit messagecommitClient- the commit client- Throws:
org.tmatesoft.svn.core.SVNException- the SVN exception
-
doTagSite
public static java.lang.String doTagSite(java.lang.String strSiteName, java.lang.String strTagName, java.lang.String strSrcURL, java.lang.String strDstURL, org.tmatesoft.svn.core.wc.SVNCopyClient copyClient) throws org.tmatesoft.svn.core.SVNExceptionTag un site.- Parameters:
strSiteName- le nom du sitestrTagName- le nom du tagstrSrcURL- the str src URLstrDstURL- the str dst URLcopyClient- le client svn permettant la copie- Returns:
- string
- Throws:
org.tmatesoft.svn.core.SVNException- the SVN exception
-
doSvnCheckout
public static java.lang.Long doSvnCheckout(java.lang.String strUrl, java.lang.String strCheckoutBaseSitePath, ReleaseSvnCheckoutClient updateClient, CommandResult result) throws org.tmatesoft.svn.core.SVNExceptionDo svn checkout.- Parameters:
strUrl- the str urlstrCheckoutBaseSitePath- the str checkout base site pathupdateClient- the update clientresult- the result- Returns:
- the long
- Throws:
org.tmatesoft.svn.core.SVNException- the SVN exception
-
getSvnSites
public static fr.paris.lutece.util.ReferenceList getSvnSites(java.lang.String strUrlSite, org.tmatesoft.svn.core.wc.SVNClientManager clientManager) throws org.tmatesoft.svn.core.SVNExceptionGets the svn sites.- Parameters:
strUrlSite- the str url siteclientManager- the client manager- Returns:
- the svn sites
- Throws:
org.tmatesoft.svn.core.SVNException- the SVN exception
-
getLastRevision
public static java.lang.Long getLastRevision(java.lang.String strRepoPath, java.lang.String strUserName, java.lang.String strPassword)Gets the last revision.- Parameters:
strRepoPath- the str repo pathstrUserName- the str user namestrPassword- the str password- Returns:
- the last revision
-
update
public static void update(java.lang.String strRepoPath, java.lang.String strUserName, java.lang.String strPassword)Update.- Parameters:
strRepoPath- the str repo pathstrUserName- the str user namestrPassword- the str password
-
revert
public static void revert(java.lang.String strRepoPath, java.lang.String strCmUrl, java.lang.String strUserName, java.lang.String strPassword, java.lang.Long revCurrentCommit, java.lang.Long lRevertCommit)Revert.- Parameters:
strRepoPath- the str repo pathstrCmUrl- the str cm urlstrUserName- the str user namestrPassword- the str passwordrevCurrentCommit- the rev current commitlRevertCommit- the l revert commit
-
getSvnUrlTagSite
public static java.lang.String getSvnUrlTagSite(java.lang.String strScmUrl, java.lang.String strTagName)Gets the svn url tag site.- Parameters:
strScmUrl- the str scm urlstrTagName- the str tag name- Returns:
- the svn url tag site
-
getRepoUrl
public static java.lang.String getRepoUrl(java.lang.String strRepoUrl)
Gets the repo url.- Parameters:
strRepoUrl- the str repo url- Returns:
- the repo url
-
checkAuthentication
public static boolean checkAuthentication(java.lang.String strUrl, java.lang.String strUserName, java.lang.String strPassword)Check authentication.- Parameters:
strUrl- the str urlstrUserName- the str user namestrPassword- the str password- Returns:
- true, if successful
-
-