public class CleanCommand extends GitCommand<java.util.Set<java.lang.String>>
repo| Modifier | Constructor and Description |
|---|---|
protected |
CleanCommand(Repository repo) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
call()
Executes the
clean command with all the options and parameters
collected by the setter methods of this class. |
CleanCommand |
setDryRun(boolean dryRun)
If dryRun is set, the paths in question will not actually be deleted.
|
CleanCommand |
setPaths(java.util.Set<java.lang.String> paths)
If paths are set, only these paths are affected by the cleaning.
|
checkCallable, getRepository, setCallableprotected CleanCommand(Repository repo)
repo - public java.util.Set<java.lang.String> call()
throws NoWorkTreeException,
GitAPIException
clean command with all the options and parameters
collected by the setter methods of this class. Each instance of this
class should only be used for one invocation of the command (means: one
call to call())call in interface java.util.concurrent.Callable<java.util.Set<java.lang.String>>call in class GitCommand<java.util.Set<java.lang.String>>GitAPIExceptionNoWorkTreeExceptionpublic CleanCommand setPaths(java.util.Set<java.lang.String> paths)
paths - the paths to setthispublic CleanCommand setDryRun(boolean dryRun)
dryRun - whether to do a dry run or notthisCopyright © 2012. All Rights Reserved.