????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?????С?