@Component(role=org.apache.maven.wagon.Wagon.class, hint="git", instantiationStrategy="per-lookup") public class GitWagon extends AbstractGitWagon
Constructor and Description |
---|
GitWagon() |
Modifier and Type | Method and Description |
---|---|
GitUri |
buildGitUri(URI gitUri)
Constructs the object from a URI string that contains "git:" schema.
|
File |
getFileForResource(String resourceName)
This will get the file object for the given resource relative to the
Git specified for the connection. |
closeConnection, fillInputData, fillOutputData, getFileList, getGit, getGitUri, openConnectionInternal, putDirectory, resourceExists, supportsDirectoryCopy
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream, put, putFromStream, putFromStream, putFromStream
addSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, fireTransferError, fireTransferProgress, getAuthenticationInfo, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getReadTimeout, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, openConnection, postProcessListeners, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setReadTimeout, setSessionEventSupport, setTimeout, setTransferEventSupport, transfer, transfer, transfer, transfer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout
public GitUri buildGitUri(URI gitUri)
buildGitUri
in class AbstractGitWagon
gitUri
- repository URLpublic File getFileForResource(String resourceName) throws org.eclipse.jgit.api.errors.GitAPIException, IOException, URISyntaxException
AbstractGitWagon
Git
specified for the connection. It will handle resources where
it jumps up past the parent folder.getFileForResource
in class AbstractGitWagon
resourceName
- resource name.org.eclipse.jgit.api.errors.GitAPIException
- problem with the GIT API.IOException
URISyntaxException
Copyright © 2012–2014 Trajano. All rights reserved.