Class GitSCMOperator
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.EObjectImpl
-
- org.enterprisedomain.classmaker.impl.SCMOperatorImpl<org.eclipse.jgit.api.Git>
-
- org.enterprisedomain.classmaker.scm.GitSCMOperator
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,SCMOperator<org.eclipse.jgit.api.Git>
public class GitSCMOperator extends SCMOperatorImpl<org.eclipse.jgit.api.Git>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Field Summary
-
Fields inherited from interface org.enterprisedomain.classmaker.SCMOperator
MASTER_BRANCH
-
-
Constructor Summary
Constructors Constructor Description GitSCMOperator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String filepattern)
void
checkout(java.lang.String branch, java.lang.String commitId, boolean forced)
void
checkoutOrphan(java.lang.String branch, long timestamp)
java.lang.String
commit(java.lang.String commitMessage)
long
decodeTimestamp(java.lang.String commitMessage)
org.osgi.framework.Version
decodeVersion(java.lang.String commitMessage)
void
deleteProject()
java.lang.String
encodeCommitMessage(State state)
org.eclipse.jgit.api.Git
getRepositorySCM()
static org.eclipse.jgit.api.Git
getRepositorySCM(java.io.File dir, SCMRegistry<org.eclipse.jgit.api.Git> scmRegistry)
void
ungetRepositorySCM()
-
Methods inherited from class org.enterprisedomain.classmaker.impl.SCMOperatorImpl
basicGetRegistry, eGet, eIsSet, eSet, eUnset, getProjectName, getRegistry, setProjectName, setRegistry, toString
-
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getRepositorySCM
public org.eclipse.jgit.api.Git getRepositorySCM() throws java.lang.Exception
Description copied from class:SCMOperatorImpl
- Specified by:
getRepositorySCM
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
getRepositorySCM
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
java.lang.Exception
-
getRepositorySCM
public static org.eclipse.jgit.api.Git getRepositorySCM(java.io.File dir, SCMRegistry<org.eclipse.jgit.api.Git> scmRegistry) throws java.lang.Exception
- Throws:
java.lang.Exception
-
ungetRepositorySCM
public void ungetRepositorySCM() throws java.lang.Exception
Description copied from class:SCMOperatorImpl
- Specified by:
ungetRepositorySCM
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
ungetRepositorySCM
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
java.lang.Exception
-
add
public void add(java.lang.String filepattern) throws java.lang.Exception
Description copied from class:SCMOperatorImpl
- Specified by:
add
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
add
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
java.lang.Exception
-
commit
public java.lang.String commit(java.lang.String commitMessage) throws java.lang.Exception
Description copied from class:SCMOperatorImpl
- Specified by:
commit
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
commit
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
java.lang.Exception
-
decodeTimestamp
public long decodeTimestamp(java.lang.String commitMessage)
Description copied from class:SCMOperatorImpl
- Specified by:
decodeTimestamp
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
decodeTimestamp
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
decodeVersion
public org.osgi.framework.Version decodeVersion(java.lang.String commitMessage)
Description copied from class:SCMOperatorImpl
- Specified by:
decodeVersion
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
decodeVersion
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
encodeCommitMessage
public java.lang.String encodeCommitMessage(State state)
Description copied from class:SCMOperatorImpl
- Specified by:
encodeCommitMessage
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
encodeCommitMessage
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
deleteProject
public void deleteProject()
Description copied from class:SCMOperatorImpl
- Specified by:
deleteProject
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
deleteProject
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
checkout
public void checkout(java.lang.String branch, java.lang.String commitId, boolean forced) throws java.lang.Exception
Description copied from class:SCMOperatorImpl
- Specified by:
checkout
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
checkout
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Parameters:
branch
- the branch namecommitId
- the commit identifier- Throws:
java.lang.Exception
-
checkoutOrphan
public void checkoutOrphan(java.lang.String branch, long timestamp) throws java.lang.Exception
Description copied from class:SCMOperatorImpl
- Specified by:
checkoutOrphan
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
checkoutOrphan
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Parameters:
branch
- the branch name- Throws:
java.lang.Exception
-
-