Júlio Cesar Bueno
05/13/2024, 4:35 PMsystemProperty("SCREENSHOT_TESTS_REFERENCE_RUN", true)
in the library
System.getProperty("SCREENSHOT_TESTS_REFERENCE_RUN")
?.toBooleanStrictOrNull() == true
Vampire
05/13/2024, 8:12 PMexpand
on the processResources
task to fill in the placeholder with the value you want to have at runtime and then reading that file. If doing so, don't forget to restrict the replacing on the relevant files and setting a filteringCharset
.Júlio Cesar Bueno
05/14/2024, 8:10 AMprocessResources
is basically writting/reading a file, right ?Vampire
05/14/2024, 12:31 PMprocessResources
basically is a task that copies the resources from src/main/resources
into a folder in the build directory.
And that you can configure to for example fill in placeholders in those copied files to have build-time values at runtime.