Groovy Documentation

org.ajoberstar.gradle.git.tasks
[Java] Class GitBase

java.lang.Object
  org.gradle.api.DefaultTask
      org.ajoberstar.gradle.git.tasks.GitBase

public abstract class GitBase
extends DefaultTask

Base task for all Git commands that are executed on an existing repository.

Since:
0.1.0


Method Summary
protected Git getGit()

Gets a Git instance for this task's repository.

protected java.io.File getRepoDir()

Gets the directory of the repository.

void setRepoPath(java.lang.Object repoPath)

Sets the path to the repository.

 

Method Detail

getGit

protected Git getGit()
Gets a Git instance for this task's repository.
Returns:
a new Git instance


getRepoDir

protected java.io.File getRepoDir()
Gets the directory of the repository.
Returns:
the repo directory


setRepoPath

public void setRepoPath(java.lang.Object repoPath)
Sets the path to the repository. Will be evaluated relative to the project directory
Parameters:
repoPath - the path to the repository


 

Groovy Documentation