您的位置:首页 > 其它

gradle中用的一些路径环境变量

2016-07-22 16:12 309 查看
配置gradle有时会用一些路径相关的环境变量,常用的几个定义如下:

projectDir

The directory containing the project build file.

rootDir

The root directory of this project. The root directory is the project directory of the root project.

buildDir

The build directory of this project. The build directory is the directory which all artifacts are generated into. The default value for the build directory is projectDir/build

其实也比较好理解了,再举个列子:

新建一个工程名为InspectGradleDir,路径为

D:\study\android\projects\InspectGradleDir

那么rootDir对应

D:\study\android\projects\InspectGradleDir

projectDir对应

D:\study\android\projects\InspectGradleDir\app

buildDir对应

D:\study\android\projects\InspectGradleDir\app\build
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: