File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
src/mill/contrib/buildinfo
test/src/mill/contrib/buildinfo Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ object BuildInfo {
139
139
|public class $buildInfoObjectName {
140
140
| $bindingsCode
141
141
|
142
- | public static java.util.Map<String, String> toMap() {
143
- | Map<String, String> map = new HashMap<String, String>();
142
+ | public static java.util.Map<java.lang. String, java.lang. String> toMap() {
143
+ | java.util. Map<java.lang. String, java.lang. String> map = new java.util. HashMap<java.lang. String, java.lang. String>();
144
144
| $mapEntries
145
145
| return map;
146
146
| }
Original file line number Diff line number Diff line change @@ -207,6 +207,19 @@ object BuildInfoTests extends TestSuite {
207
207
)
208
208
}
209
209
210
+ " java-static" - workspaceTest(BuildInfoJavaStatic , " java" ) { eval =>
211
+ val runResult = eval.outPath / " hello-mill"
212
+ val generatedSrc = eval.outPath / " buildInfoSources.dest" / " foo" / " BuildInfo.java"
213
+ val Right ((result, evalCount)) =
214
+ eval.apply(BuildInfoJavaStatic .run(T .task(Args (runResult.toString))))
215
+
216
+ assert(
217
+ os.exists(runResult),
218
+ os.exists(generatedSrc),
219
+ os.read(runResult) == " not-provided-for-java-modules"
220
+ )
221
+ }
222
+
210
223
" generatedSources must be a folder" - workspaceTest(BuildInfoPlain , " scala" ) { eval =>
211
224
val buildInfoGeneratedSourcesFolder = eval.outPath / " buildInfoSources.dest"
212
225
val Right ((result, evalCount)) = eval.apply(BuildInfoPlain .generatedSources)
You can’t perform that action at this time.
0 commit comments