Polish
This commit is contained in:
@@ -349,6 +349,7 @@ public class BuildRequest {
|
||||
* Return a new {@link BuildRequest} with an updated build workspace.
|
||||
* @param buildWorkspace the build workspace
|
||||
* @return an updated build request
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public BuildRequest withBuildWorkspace(Cache buildWorkspace) {
|
||||
Assert.notNull(buildWorkspace, "BuildWorkspace must not be null");
|
||||
@@ -426,6 +427,7 @@ public class BuildRequest {
|
||||
* Return a new {@link BuildRequest} with an updated security options.
|
||||
* @param securityOptions the security options
|
||||
* @return an updated build request
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public BuildRequest withSecurityOptions(List<String> securityOptions) {
|
||||
Assert.notNull(securityOptions, "SecurityOption must not be null");
|
||||
@@ -552,6 +554,11 @@ public class BuildRequest {
|
||||
return this.tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the build workspace that should be used by the lifecycle.
|
||||
* @return the build workspace or {@code null}
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public Cache getBuildWorkspace() {
|
||||
return this.buildWorkspace;
|
||||
}
|
||||
@@ -590,7 +597,8 @@ public class BuildRequest {
|
||||
|
||||
/**
|
||||
* Return the security options that should be used by the lifecycle.
|
||||
* @return the security options
|
||||
* @return the security options or {@code null}
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public List<String> getSecurityOptions() {
|
||||
return this.securityOptions;
|
||||
|
||||
@@ -228,6 +228,7 @@ public abstract class BootBuildImage extends DefaultTask {
|
||||
/**
|
||||
* Returns the build temporary workspace that will be used when building the image.
|
||||
* @return the cache
|
||||
* @since 3.2.0
|
||||
*/
|
||||
@Nested
|
||||
@Optional
|
||||
@@ -239,6 +240,7 @@ public abstract class BootBuildImage extends DefaultTask {
|
||||
* Customizes the {@link CacheSpec} for the build temporary workspace using the given
|
||||
* {@code action}.
|
||||
* @param action the action
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public void buildWorkspace(Action<CacheSpec> action) {
|
||||
action.execute(this.buildWorkspace);
|
||||
|
||||
Reference in New Issue
Block a user