Class SvnUtils
java.lang.Object
fr.paris.lutece.plugins.releaser.util.svn.SvnUtils
The Class SvnUtils.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckAuthentication(String strUrl, String strUserName, String strPassword) Check authentication.static voiddoCommit(String strPathFile, String strCommitMessage, ReleaseSvnCommitClient commitClient) Commit.static LongdoSvnCheckout(String strUrl, String strCheckoutBaseSitePath, ReleaseSvnCheckoutClient updateClient, CommandResult result) Do svn checkout.static StringdoTagSite(String strSiteName, String strTagName, String strSrcURL, String strDstURL, org.tmatesoft.svn.core.wc.SVNCopyClient copyClient) Tag un site.static LonggetLastRevision(String strRepoPath, String strUserName, String strPassword) Gets the last revision.static StringgetRepoUrl(String strRepoUrl) Gets the repo url.static fr.paris.lutece.util.ReferenceListgetSvnSites(String strUrlSite, org.tmatesoft.svn.core.wc.SVNClientManager clientManager) Gets the svn sites.static StringgetSvnUrlTagSite(String strScmUrl, String strTagName) Gets the svn url tag site.static voidinit()Initialise les diff�rentes factory pour le svn.static voidrevert(String strRepoPath, String strCmUrl, String strUserName, String strPassword, Long revCurrentCommit, Long lRevertCommit) Revert.static voidUpdate.
-
Method Details
-
init
public static void init()Initialise les diff�rentes factory pour le svn. -
doCommit
public static void doCommit(String strPathFile, String strCommitMessage, ReleaseSvnCommitClient commitClient) throws org.tmatesoft.svn.core.SVNException Commit.- 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 String doTagSite(String strSiteName, String strTagName, String strSrcURL, String strDstURL, org.tmatesoft.svn.core.wc.SVNCopyClient copyClient) throws org.tmatesoft.svn.core.SVNException Tag 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 Long doSvnCheckout(String strUrl, String strCheckoutBaseSitePath, ReleaseSvnCheckoutClient updateClient, CommandResult result) throws org.tmatesoft.svn.core.SVNException Do 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(String strUrlSite, org.tmatesoft.svn.core.wc.SVNClientManager clientManager) throws org.tmatesoft.svn.core.SVNException Gets 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
Gets the last revision.- Parameters:
strRepoPath- the str repo pathstrUserName- the str user namestrPassword- the str password- Returns:
- the last revision
-
update
Update.- Parameters:
strRepoPath- the str repo pathstrUserName- the str user namestrPassword- the str password
-
revert
public static void revert(String strRepoPath, String strCmUrl, String strUserName, String strPassword, Long revCurrentCommit, 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
Gets the svn url tag site.- Parameters:
strScmUrl- the str scm urlstrTagName- the str tag name- Returns:
- the svn url tag site
-
getRepoUrl
Gets the repo url.- Parameters:
strRepoUrl- the str repo url- Returns:
- the repo url
-
checkAuthentication
Check authentication.- Parameters:
strUrl- the str urlstrUserName- the str user namestrPassword- the str password- Returns:
- true, if successful
-