Ant?build.xml???
???????????? ???????[ 2014/7/4 15:16:25 ] ????????Ant ????????????
????Ant?????
??????????Щ???????????????Ant???????????????????????Linux??????????????make????????????Linux?????Щ??????????????????????????Make?????????????????????????Ant??????????????????make??gnumake??nmake??Щ??????????????????????Ant????????Щ???????????Ant???????????????????????????????????Щ????Ant????????????
????Ant ?? makefile
????Makefile???Щ??????????????????????????????Tab????????Ant???????????”???????Tab????????????????????????????”?????Щ????????????????????????????????к????????????Ant???????????????????????????????Java????????Ant?????????XML????????????Shell??????????????????Project??????????Project???????target??target???????????task??????task????????????????????java?????????
????Ant?????
????Ant??Apache????????JAKARTA???е??????????????????μ???????????Ant???Java?????д?????????к?????????????????Ant???????????????????????????Ant???????????XML???(???????)??Ant???????target??????????и???task?????task??????????????????Ant????????XML??????????????????????????д???????????????Ant?????????????????С?????Ant???????????????????????????????Щ?????????????
????Ant ????Ant?????????????????μ???????????????дAnt?????????????????????????????????????????????????á?Ant???????????????build.xml?????????????????????????????е????????????????????????Ant?????????????????κε?λ?á???????????????????????У?????????????????????????????????????????????ν???
????(1) src????????
????(2) class?????????????
????(3) lib????????JAR????
????(4) dist??????????????????
????Ant?????????XML???????????????????????????(Project???)?????????????????????(target???)????Щ???????????????????????????????????????????????????????????????п????????????????л????????????е????????С?Ant???????????????????????????????????Ant?????е????Ant?е?????????3??
????(1) ??????????????????Ant?????????
????(2) ????????????????????????????????????????????JAR?????
????(3) ???????????????????????????????????????????
????1.<project>???
?????????????????????????<project>??????????????????????????ж???????????????????????????????????????????
????(1) default????????????????????????????
????(2) basedir??????????????
????(3) name??????????
????(4) description??????????????
??????????????????????????????????????????????????????????????????????????????????????????
????2.<target>???
???????????????????????????target????????target?????????????????target????????磬?????target???????????????target???????????????????????????????????????????????????????????target?????????????target??Target???????????????
????(1) name???????????????????????
????(2) depends????????????
????(3) if????????????????????С?
????(4) unless?????????????????????С?
????(5) description??????????????
????Ant??depends?????????target????????Ant??????depends??????target?????????????????target???????????????????????????????target???????е????run??target??depends????compile???????compile??target??depends??????prepare??????????target??е??????prepare->compile->run?????target?????????Σ?????ж??target????????????????if??unless?????target?????С?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11