Class SvnResourceService
java.lang.Object
fr.paris.lutece.plugins.releaser.service.svn.SvnResourceService
- All Implemented Interfaces:
IVCSResourceService
SvnSiteService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckoutBranch(WorkflowReleaseContext context, String strBranch, Locale locale) Checkout the given branch.doCheckoutRepository(WorkflowReleaseContext context, String strLogin, String strPassword) Do checkout repository.Fetch the pom.xml content from a repositorygetLastRelease(Site site, String strLogin, String strPassword) Gets the last release found in the SVN repository.voidrollbackRelease(WorkflowReleaseContext context, Locale locale) Rollback release.voidupdateBranch(WorkflowReleaseContext context, String strBranch, Locale locale, String strMessage) Commit and push the local working tree on the given branch.voidupdateMasterBranch(WorkflowReleaseContext context, String strMasterBranch, Locale locale) Update master branch.
-
Constructor Details
-
SvnResourceService
public SvnResourceService()
-
-
Method Details
-
fetchPom
Fetch the pom.xml content from a repository- Specified by:
fetchPomin interfaceIVCSResourceService- Parameters:
site- the sitestrLogin- the str loginstrPassword- the str password- Returns:
- The POM content
-
getLastRelease
Gets the last release found in the SVN repository.- Specified by:
getLastReleasein interfaceIVCSResourceService- Parameters:
site- the sitestrLogin- the str loginstrPassword- the str password- Returns:
- The version if found otherwise null
-
doCheckoutRepository
public String doCheckoutRepository(WorkflowReleaseContext context, String strLogin, String strPassword) Do checkout repository.- Specified by:
doCheckoutRepositoryin interfaceIVCSResourceService- Parameters:
context- the contextstrLogin- the str loginstrPassword- the str password- Returns:
- the string
-
updateMasterBranch
public void updateMasterBranch(WorkflowReleaseContext context, String strMasterBranch, Locale locale) Update master branch.- Specified by:
updateMasterBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the localestrMasterBranch- the target master* branch (e.g. "master", "master_core7")
-
rollbackRelease
Rollback release.- Specified by:
rollbackReleasein interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
updateBranch
public void updateBranch(WorkflowReleaseContext context, String strBranch, Locale locale, String strMessage) Description copied from interface:IVCSResourceServiceCommit and push the local working tree on the given branch.- Specified by:
updateBranchin interfaceIVCSResourceService- Parameters:
context- the contextstrBranch- the branch to updatelocale- the localestrMessage- the commit message
-
checkoutBranch
Description copied from interface:IVCSResourceServiceCheckout the given branch.- Specified by:
checkoutBranchin interfaceIVCSResourceService- Parameters:
context- the contextstrBranch- the branch to checkoutlocale- the locale
-