我是一名Android开发人员,我试图从Unix迁移到Windows开发环境,所以我用bat重写了构建脚本。但这不是我的目的。
这是我的构建脚本,位于build.bat
中:
gradlew clean
gradlew assembleDebug -x lint
gradlew -b retrofit2/build.gradle -x lint makeXXHttpClientJar
echo "final package in 'retrofit2/build/libs' directory"
explorer retrofit2\build\libs
在项目根目录下运行脚本后,只需运行build
。输出如下:
C:\Users\yuxiaofei93\workspace\xxhttpclient>build
C:\Users\yuxiaofei93\workspace\xxhttpclient>gradlew clean
Deprecated Gradle features were used in this build, making it incompatible
with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.3-rc-
2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 9s
6 actionable tasks: 6 executed
C:\Users\yuxiaofei93\workspace\xxhttpclient>
似乎该过程在第一个命令后停止了。我只是不知道为什么。