| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private Set |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Set | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private Set | Returns: a set of strings with the cleaned path added to itThe path to be cleaned path, Set<String> A set of strings representing the files that have been cleaned
already, the path to be cleaned will be added to this set
before being returned. inFiles)When dryRun is false, deletes the specified path from disk. |
| private Set | |
| private Set | |
| public CleanCommand | Returns: thiswhether to clean directories too, or only files. dirs)If dirs is set, in addition to files, also clean directories. |
| public CleanCommand | Returns: thiswhether to do a dry run or not dryRun)If dryRun is set, the paths in question will not actually be deleted. |
| public CleanCommand | Returns: thiswhether or not to delete git repositories force)If force is set, directories that are git repositories will also be deleted. |
| public CleanCommand | Returns: thiswhether to respect .gitignore or not. ignore)If ignore is set, don't report/clean files/directories that are ignored by a .gitignore. |
| public CleanCommand |
| directories | back to summary |
|---|---|
| private boolean directories | |
| dryRun | back to summary |
|---|---|
| private boolean dryRun | |
| force | back to summary |
|---|---|
| private boolean force | |
| ignore | back to summary |
|---|---|
| private boolean ignore | |
| paths | back to summary |
|---|---|
| private Set<String> paths | |
| CleanCommand | back to summary |
|---|---|
| protected CleanCommand(Repository repo) Constructor for CleanCommand
| |
| call | back to summary |
|---|---|
| public Set Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
Executes the
| |
| cleanPath | back to summary |
|---|---|
| private Set When dryRun is false, deletes the specified path from disk. If dryRun is
true, no paths are actually deleted. In both cases, the paths that would
have been deleted are added to inFiles and returned.
Paths that are directories are recursively deleted when
| |
| filterFolders | back to summary |
|---|---|
| private Set | |
| filterIgnorePaths | back to summary |
|---|---|
| private Set | |
| setCleanDirectories | back to summary |
|---|---|
| public CleanCommand setCleanDirectories(boolean dirs) If dirs is set, in addition to files, also clean directories.
| |
| setDryRun | back to summary |
|---|---|
| public CleanCommand setDryRun(boolean dryRun) If dryRun is set, the paths in question will not actually be deleted.
| |
| setForce | back to summary |
|---|---|
| public CleanCommand setForce(boolean force) If force is set, directories that are git repositories will also be deleted.
| |
| setIgnore | back to summary |
|---|---|
| public CleanCommand setIgnore(boolean ignore) If ignore is set, don't report/clean files/directories that are ignored by a .gitignore. otherwise do handle them.
| |
| setPaths | back to summary |
|---|---|
| public CleanCommand setPaths(Set<String> paths) If paths are set, only these paths are affected by the cleaning.
| |