Groovy Documentation

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

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

public class GitInit
extends DefaultTask

Task to initialize a new Git repository on the local system.

Authors:
Rasmus 'Cervator' Praestholm
Since:
0.6.2


Method Summary
boolean getBare()

Gets whether the repository will be bare.

java.io.File getDestinationDir()

Gets the destination directory the repository will be initialized into.

void initRepo()

Initializes a new local Git repository as configured.

void setBare(boolean bare)

Sets whether the repository will be bare.

void setDestinationPath(java.lang.Object destinationPath)

Sets the path the repository should be initialized into.

 

Method Detail

getBare

@Input
	public
public boolean getBare()
Gets whether the repository will be bare.
Returns:
whether the repo will be bare


getDestinationDir

Directory
	public
public java.io.File getDestinationDir()
Gets the destination directory the repository will be initialized into.
Returns:
the path to initialized into


initRepo

tion
	public
public void initRepo()
Initializes a new local Git repository as configured.


setBare

public void setBare(boolean bare)
Sets whether the repository will be bare.
Parameters:
bare - whether the repo will be bare


setDestinationPath

public void setDestinationPath(java.lang.Object destinationPath)
Sets the path the repository should be initialized into. Will be evaluated using org.gradle.api.Project#file(Object).
Parameters:
destinationPath - the path to initialize into


 

Groovy Documentation