[英]gradlew clean vs gradlew clear what is the difference
I wrote by mistake gradlew clear
instead of gradlew clean
in my react-native project's android
folder, and I see that it does some serious work. 我在我的react-native项目的
android
文件夹中错误地编写了gradlew clear
而不是gradlew clean
,我发现它做了一些认真的工作。 So what is this doing and what is the difference between gradlew
's clear
vs clean
? 那么这是怎么做的?
gradlew
的clear
和clean
之间有什么区别? I could not find documentation. 我找不到文档。
Also it would be good to understand: When I run gradlew.bat
it seems I'm running a java class. 也很容易理解:当我运行
gradlew.bat
,似乎正在运行Java类。 Where is the clean
and where is the clear
java class? 哪里是
clean
和哪里是clear
java类? Or is this some internal command of the gradlew (java) program? 还是这是gradlew(java)程序的某些内部命令?
OK, so the serious work is "loading 6/6 projects" and then after a while of churning away it says: 好的,因此,认真的工作是“加载6/6项目”,然后经过一段时间的修改后说:
C:\dev\devreact\noam\android>gradlew clear
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
Task 'clear' not found in root project 'noam'.
Some candidates are: 'clean'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 49.374 secs
So there is no gradlew clear
所以没有
gradlew clear
About the clean: you can glean much information by reading this: https://www.labkey.org/Documentation/wiki-page.view?name=gradleClean 关于清洁:您可以通过阅读以下内容来收集许多信息: https : //www.labkey.org/Documentation/wiki-page.view?name=gradleClean
The Gradle docs say nothing about cleaning and do not really explain the internals of Gradle. Gradle文档对清洁一无所获,也没有真正解释Gradle的内部原理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.