@@ -1,2 +1,2 | |||||
1 | group=org.implab.gradle |
|
1 | group=org.implab.gradle | |
2 | version=1.1 No newline at end of file |
|
2 | version=1.1.1 No newline at end of file |
@@ -3,8 +3,10 package org.implab.gradle.containers; | |||||
3 | import java.util.Optional; |
|
3 | import java.util.Optional; | |
4 |
|
4 | |||
5 | import org.gradle.api.Project; |
|
5 | import org.gradle.api.Project; | |
|
6 | import org.gradle.api.file.Directory; | |||
6 | import org.gradle.api.file.DirectoryProperty; |
|
7 | import org.gradle.api.file.DirectoryProperty; | |
7 | import org.gradle.api.file.ProjectLayout; |
|
8 | import org.gradle.api.file.ProjectLayout; | |
|
9 | import org.gradle.api.file.RegularFile; | |||
8 | import org.gradle.api.file.RegularFileProperty; |
|
10 | import org.gradle.api.file.RegularFileProperty; | |
9 | import org.gradle.api.model.ObjectFactory; |
|
11 | import org.gradle.api.model.ObjectFactory; | |
10 | import org.gradle.api.provider.Property; |
|
12 | import org.gradle.api.provider.Property; | |
@@ -67,26 +69,86 public class ContainerExtension { | |||||
67 | return contextDir; |
|
69 | return contextDir; | |
68 | } |
|
70 | } | |
69 |
|
71 | |||
|
72 | public void setContextDirectory(Directory dir) { | |||
|
73 | contextDir.set(dir); | |||
|
74 | } | |||
|
75 | ||||
|
76 | public void setContextDirectory(Provider<Directory> dir) { | |||
|
77 | contextDir.set(dir); | |||
|
78 | } | |||
|
79 | ||||
70 | public RegularFileProperty getImageIdFile() { |
|
80 | public RegularFileProperty getImageIdFile() { | |
71 | return imageIdFile; |
|
81 | return imageIdFile; | |
72 | } |
|
82 | } | |
73 |
|
83 | |||
|
84 | public void setImageIdFile(RegularFile file) { | |||
|
85 | imageIdFile.set(file); | |||
|
86 | } | |||
|
87 | ||||
|
88 | public void setImageIdFile(Provider<RegularFile> file) { | |||
|
89 | imageIdFile.set(file); | |||
|
90 | } | |||
|
91 | ||||
74 | public Property<String> getImageAuthority() { |
|
92 | public Property<String> getImageAuthority() { | |
75 | return imageAuthority; |
|
93 | return imageAuthority; | |
76 | } |
|
94 | } | |
77 |
|
95 | |||
|
96 | public void setImageAuthority(String value) { | |||
|
97 | imageAuthority.set(value); | |||
|
98 | } | |||
|
99 | ||||
|
100 | public void setImageAuthority(Provider<String> value) { | |||
|
101 | imageAuthority.set(value); | |||
|
102 | } | |||
|
103 | ||||
78 | public Property<String> getImageGroup() { |
|
104 | public Property<String> getImageGroup() { | |
79 | return imageGroup; |
|
105 | return imageGroup; | |
80 | } |
|
106 | } | |
81 |
|
107 | |||
|
108 | public void setImageGroup(String value) { | |||
|
109 | imageGroup.set(value); | |||
|
110 | } | |||
|
111 | ||||
|
112 | public void setImageGroup(Provider<String> value) { | |||
|
113 | imageGroup.set(value); | |||
|
114 | } | |||
|
115 | ||||
82 | public Property<ImageName> getImageName() { |
|
116 | public Property<ImageName> getImageName() { | |
83 | return imageName; |
|
117 | return imageName; | |
84 | } |
|
118 | } | |
85 |
|
119 | |||
|
120 | public void setImageName(ImageName name) { | |||
|
121 | imageName.set(name); | |||
|
122 | } | |||
|
123 | ||||
|
124 | public void setImageName(Provider<ImageName> name) { | |||
|
125 | imageName.set(name); | |||
|
126 | } | |||
|
127 | ||||
86 | public Property<String> getImageShortName() { |
|
128 | public Property<String> getImageShortName() { | |
87 | return imageShortName; |
|
129 | return imageShortName; | |
88 | } |
|
130 | } | |
89 |
|
131 | |||
|
132 | public void setImageShortName(String name) { | |||
|
133 | imageShortName.set(name); | |||
|
134 | } | |||
|
135 | ||||
|
136 | public void setImageShortName(Provider<String> name) { | |||
|
137 | imageShortName.set(name); | |||
|
138 | } | |||
|
139 | ||||
|
140 | public Property<String> getImageTag() { | |||
|
141 | return imageTag; | |||
|
142 | } | |||
|
143 | ||||
|
144 | public void setImageTag(String tag) { | |||
|
145 | imageTag.set(tag); | |||
|
146 | } | |||
|
147 | ||||
|
148 | public void setImageTag(Provider<String> tag) { | |||
|
149 | imageTag.set(tag); | |||
|
150 | } | |||
|
151 | ||||
90 | public ImageName createImageName() { |
|
152 | public ImageName createImageName() { | |
91 | return new ImageName(); |
|
153 | return new ImageName(); | |
92 | } |
|
154 | } |
General Comments 0
You need to be logged in to leave comments.
Login now