How is the root folder of Multi build project determined in gradle? -
before projects built settings object created contains rootdir variable.
rootdir : root directory of build. root directory project directory of root project.
also documentation states can never null.
file getrootdir() returns root directory of build. root directory project directory of root project. returns: root directory. never returns null.
i want know how rootdir determined in multi build project. highest level directory containing build.gradle?
the details can discovered in test specification
simple version: goes directory hierarchy , searches settings.gradle
file. if not found or when started --no-search-upward
can return current directory. or can pass location of settings.gradle
using --settings-file
.
Comments
Post a Comment