Groovy Documentation

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

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

public class GitClean
extends GitBase

Task to clean the working tree of a local Git repository.

Authors:
Alex Lixandru
Since:
0.2.3


Method Summary
java.util.Set getPaths()

Gets the paths to clean.

void paths(java.lang.Object... cleanPaths)

Adds paths to be cleaned.

void paths(java.lang.Iterable cleanPaths)

Adds paths to be cleaned.

void reset()

Reset the changes as configured.

void setPaths(java.util.Set cleanPaths)

Sets the paths for the clean command.

 
Methods inherited from class GitBase
getGit, getRepoDir, setRepoPath
 

Method Detail

getPaths

public
public java.util.Set getPaths()
Gets the paths to clean.
Returns:
the paths to clean


paths

public void paths(java.lang.Object... cleanPaths)
Adds paths to be cleaned.
Parameters:
cleanPaths - the paths to be cleaned


paths

public void paths(java.lang.Iterable cleanPaths)
Adds paths to be cleaned.
Parameters:
cleanPaths - the paths to be cleaned


reset

tion
	public
public void reset()
Reset the changes as configured. If paths is set, only the specified paths will be cleaned. Otherwise all paths will be.


setPaths

public void setPaths(java.util.Set cleanPaths)
Sets the paths for the clean command.
Parameters:
cleanPaths - the paths to be cleaned


 

Groovy Documentation