Skip to content

Commit db17f9c

Browse files
authored
Android Data Binding: Process resources expects an absolute path (#7204)
- Fixes #7203 - LayoutXmlProcessor expects absolute paths but relative was passed (related to os-lib absolute path changes, but any place that expects absolute paths we can gradually switch to explicit absolute path at the last call to make it more future proof) ## External pipe fix evidence - Broken Pipeline: [java.lang.IllegalStateException: ../mill-workspace/Jetchat/app/src/main/res/layout/content_main.xml is not an absolute path](https://github.com/vaslabs-ltd/compose-samples-with-mill/actions/runs/27060077019/job/79871683916) - Fixed [pipeline](https://github.com/vaslabs-ltd/compose-samples-with-mill/actions/runs/27088232437) Note: For some reason passing an absolute path from the android module to the processor didn't work, it's unclear whether this was because of `os.Path::toIO`
1 parent 57928c7 commit db17f9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/androidlib/databinding/impl/src/mill/androidlib/databinding/AndroidDataBindingImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class AndroidDataBindingImpl extends AndroidDataBindingWorker {
2121
val processor = createXmlProcessor(args)
2222
val input = LayoutXmlProcessor.ResourceInput(
2323
false,
24-
os.Path(args.resInputDir).toIO,
25-
os.Path(args.resOutputDir).toIO
24+
os.Path(args.resInputDir).toNIO.toAbsolutePath.toFile,
25+
os.Path(args.resOutputDir).toNIO.toAbsolutePath.toFile
2626
)
2727
processor.processResources(input, args.enableViewBinding, args.enableDataBinding)
2828

0 commit comments

Comments
 (0)