# HG changeset patch # User cin # Date 2021-10-04 21:48:20 # Node ID c7ba4d8ec41a4d74d2d648edc6c1cc9c54406591 # Parent c27777323e61dce95164b6ef457d15ce1fc9ad37 added setters to ContainerExtension diff --git a/container/gradle.properties b/container/gradle.properties --- a/container/gradle.properties +++ b/container/gradle.properties @@ -1,2 +1,2 @@ group=org.implab.gradle -version=1.1 \ No newline at end of file +version=1.1.1 \ No newline at end of file diff --git a/container/src/main/java/org/implab/gradle/containers/ContainerExtension.java b/container/src/main/java/org/implab/gradle/containers/ContainerExtension.java --- a/container/src/main/java/org/implab/gradle/containers/ContainerExtension.java +++ b/container/src/main/java/org/implab/gradle/containers/ContainerExtension.java @@ -3,8 +3,10 @@ package org.implab.gradle.containers; import java.util.Optional; import org.gradle.api.Project; +import org.gradle.api.file.Directory; import org.gradle.api.file.DirectoryProperty; import org.gradle.api.file.ProjectLayout; +import org.gradle.api.file.RegularFile; import org.gradle.api.file.RegularFileProperty; import org.gradle.api.model.ObjectFactory; import org.gradle.api.provider.Property; @@ -67,26 +69,86 @@ public class ContainerExtension { return contextDir; } + public void setContextDirectory(Directory dir) { + contextDir.set(dir); + } + + public void setContextDirectory(Provider dir) { + contextDir.set(dir); + } + public RegularFileProperty getImageIdFile() { return imageIdFile; } + public void setImageIdFile(RegularFile file) { + imageIdFile.set(file); + } + + public void setImageIdFile(Provider file) { + imageIdFile.set(file); + } + public Property getImageAuthority() { return imageAuthority; } + public void setImageAuthority(String value) { + imageAuthority.set(value); + } + + public void setImageAuthority(Provider value) { + imageAuthority.set(value); + } + public Property getImageGroup() { return imageGroup; } + public void setImageGroup(String value) { + imageGroup.set(value); + } + + public void setImageGroup(Provider value) { + imageGroup.set(value); + } + public Property getImageName() { return imageName; } + public void setImageName(ImageName name) { + imageName.set(name); + } + + public void setImageName(Provider name) { + imageName.set(name); + } + public Property getImageShortName() { return imageShortName; } + public void setImageShortName(String name) { + imageShortName.set(name); + } + + public void setImageShortName(Provider name) { + imageShortName.set(name); + } + + public Property getImageTag() { + return imageTag; + } + + public void setImageTag(String tag) { + imageTag.set(tag); + } + + public void setImageTag(Provider tag) { + imageTag.set(tag); + } + public ImageName createImageName() { return new ImageName(); }