Hi, I want a java code snippet to convert a java.io.File or java.nio.Path or a file path in String format to org.gradle.api.file.RegularFile.
I do have access to the gradle project instance.
Please help me out.
Hi, I want a java code snippet to convert a java.io.File or java.nio.Path or a file path in String format to org.gradle.api.file.RegularFile.
I do have access to the gradle project instance.
Please help me out.
org.gradle.api.file.ProjectLayout#file
should be the method you are after.
Thanks a lot @Vampire