获取项目属性列表

执行 gradle properties 可以获取项目所有属性列表. 如下例:

例 11.16. 属性信息

gradle -q api:properties 的输出结果

> gradle -q api:properties
------------------------------------------------------------
Project :api - The shared API for the application
------------------------------------------------------------

allprojects: [project ':api']
ant: [email protected]
antBuilderFactory: [email protected]
artifacts: [email protected]45
asDynamicObject: [email protected]
baseClassLoaderScope: [email protected]2345
buildDir: /home/user/gradle/samples/userguide/tutorial/projectReports/api/build
buildFile: /home/user/gradle/samples/userguide/tutorial/projectReports/api/build.gradle

results matching ""

    No results matching ""