Expose BootBuildImage's cleanCache property as a command-line option

See gh-23753
This commit is contained in:
olivier.antoine
2020-10-19 15:51:19 +02:00
committed by Stephane Nicoll
parent 9efff2af83
commit ded2a8006a
2 changed files with 2 additions and 1 deletions

View File

@@ -129,7 +129,7 @@ Acceptable values are `ALWAYS`, `NEVER`, and `IF_NOT_PRESENT`.
|
| `cleanCache`
|
| `--cleanCache`
| Whether to clean the cache before building.
| `false`

View File

@@ -214,6 +214,7 @@ public class BootBuildImage extends DefaultTask {
* Sets whether caches should be cleaned before packaging.
* @param cleanCache {@code true} to clean the cache, otherwise {@code false}.
*/
@Option(option = "cleanCache", description = "Clean caches before packaging")
public void setCleanCache(boolean cleanCache) {
this.cleanCache = cleanCache;
}