先上call stack
script.run() in org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory
本代码中,script=settings_ani2pwefx3gv.....
->org.gradle.groovy.scripts.BasicScript.methodMissing(String name, Object params) //name = ‘include‘ params=‘sub_project_name‘
->BeanDynamicObject 转发
->org.gradle.initialization.BaseSettings 的include 函数, 该类还有一个includeFlat 函数, 这是include稍微有区别的另外一个写法, Gradle in Action中有详细描述
Gradle源码入门九-settings的include是如何工作的
原文地址:http://blog.csdn.net/cleverwyq/article/details/43706305