Commit fda37ead authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #23753 from omlip

* pr/23753:
  Expose BootBuildImage's cleanCache property as a command-line option

Closes gh-23753
parents 9efff2af ded2a800
...@@ -129,7 +129,7 @@ Acceptable values are `ALWAYS`, `NEVER`, and `IF_NOT_PRESENT`. ...@@ -129,7 +129,7 @@ Acceptable values are `ALWAYS`, `NEVER`, and `IF_NOT_PRESENT`.
| |
| `cleanCache` | `cleanCache`
| | `--cleanCache`
| Whether to clean the cache before building. | Whether to clean the cache before building.
| `false` | `false`
......
...@@ -214,6 +214,7 @@ public class BootBuildImage extends DefaultTask { ...@@ -214,6 +214,7 @@ public class BootBuildImage extends DefaultTask {
* Sets whether caches should be cleaned before packaging. * Sets whether caches should be cleaned before packaging.
* @param cleanCache {@code true} to clean the cache, otherwise {@code false}. * @param cleanCache {@code true} to clean the cache, otherwise {@code false}.
*/ */
@Option(option = "cleanCache", description = "Clean caches before packaging")
public void setCleanCache(boolean cleanCache) { public void setCleanCache(boolean cleanCache) {
this.cleanCache = cleanCache; this.cleanCache = cleanCache;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment