eclipse菜单里面的clean和build是干啥用的
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse菜单里面的clean和build是干啥用的相关的知识,希望对你有一定的参考价值。
参考技术A
eclipse菜单里面的clean和build的作用是:
1、clean的功能,一般是用来清理项目中错误的文件的,比如工程中导入后配置了正确的classpath,但是依然报错,那么就启用clean清理一下就可以正常编译了
2、build的意思就是构建,就是把分散的java文件的依赖关系编译在一起,然后生成可以执行的class文件,就可以在jvm中运行了。
sh 子项目和主目录中的clean gradle,java build和jacoco cache
#!/bin/sh
# colors for output print
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m' # no color
echo "${YELLOW}Clearing cache...${NC}"
echo "${YELLOW}removing ${RED}.gradle${YELLOW} in home dir ...${NC}"
rm -rf ~/.gradle
echo "${YELLOW}removing ${RED}.m2${YELLOW} in home dir ...${NC}"
rm -rf ~/.m2
echo "${YELLOW}removing ${RED}.gradle${YELLOW} in module dirs ...${NC}"
find api-gateway -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find app -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find cmn -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find cor -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find crm -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find discovery-service -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find doc -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find floppy -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find mdm -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
find tpr -depth -name ".gradle" -type d -print -exec rm -r "{}" \;
echo "${YELLOW}removing ${RED}build${YELLOW} in module dirs ...${NC}"
find ./api-gateway -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./app -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./cmn -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./cor -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./crm -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./discovery-service -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./doc -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./floppy -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./mdm -depth -name "build" -type d -print -exec rm -r "{}" \;
find ./tpr -depth -name "build" -type d -print -exec rm -r "{}" \;
echo "${YELLOW}removing ${RED}out${YELLOW} in module dirs ...${NC}"
find ./api-gateway -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./app -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./cmn -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./cor -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./crm -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./discovery-service -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./doc -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./floppy -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./mdm -depth -name "out" -type d -print -exec rm -r "{}" \;
find ./tpr -depth -name "out" -type d -print -exec rm -r "{}" \;
echo "${YELLOW}removing ${RED}test-reports${YELLOW} in module dirs ...${NC}"
find ./api-gateway -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./app -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./cmn -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./cor -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./crm -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./discovery-service -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./doc -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./floppy -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./mdm -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
find ./tpr -depth -name "test-reports" -type d -print -exec rm -r "{}" \;
以上是关于eclipse菜单里面的clean和build是干啥用的的主要内容,如果未能解决你的问题,请参考以下文章
java开发:eclipse的build和maven的compile的区别是什么?build是干嘛的
android studio 里面build,clean区别
以eclipse -clean命令从命令行启动 eclipse
eclipse 如何手动build
eclipse自动编译
eclipse如何彻底删除项目?