Ant?build.xml???
???????????? ???????[ 2014/7/4 15:16:25 ] ????????Ant ????????????
????3.<mkdir>???
?????????????????????????????????dir?????????????????????????????£?<mkdir dir=”??{class.root}”/>???????????????????????????????????property??????????
????4.<jar>???
???????????????????JAR????????????????
????(1) destfile???JAR???????
????(2) basedir??????鵵?????????
????(3) includes?????鵵?????????
????(4) exchudes?????????????????
????5??<javac>???
???????????????????????java???????????????:
????(1).srcdir?????????????
????(2).destdir???class????????????
????(3).include???????????????????
????(4).excludes???????????????????
????(5).classpath???????????·????
????(6).debug?????????????????
????(7).optimize??????????????
????(8).verbose ??????????????????
????(9).fileonerror????????????????????
????6??<java>???
??????????????б????????.class????????????????
????(1).classname ???????е???????
????(2).jar????????????JAR???????
????(3).classpath????????????·????
????(4).fork?????????μ???????????и???
????(5).failonerror????????????????????
????(6).output ???????????
????(7).append????????????????????
????7.<delete>???
????????????????????????????????????????:
????(1).file??????????????
????(2).dir?????????????
????(3).includeEmptyDirs ??????????????????????????????
????(4).failonerror ????????????????????????????????????
????(5).verbose??????????г?????????????????????г???
????8.<copy>???
????????????????????????????????????????
????(1).file ?????????
????(2).tofile ???????????
????(3).todir ??????????
????(4).overwrite ???????????????????????????????
????(5).includeEmptyDirs ????????????????????????????
????(6).failonerror ?????????????з???????????????????????
????(7).verbose ???????????????????????????????
????Ant??????????
????????????????????????????飬????????????????????????????????
????org.apache.tool.ant.types???С???????????????????Щ??????????????
????1. argument ????
??????Ant??????????????????????<arg>??????????????в???????apply??exec??java?????????????<arg>???????????????????????????????????<arg>???????????
????(1).values ????????????????????????п??????????????????????????????????
????(2).file????????????????????????????У????????????????????????
????(3).line?????????????????б??
????(4).path???·????
????2.ervironment ????
??????Ant??????????????????????<env>??????????Щ????????????????????е???????<env>??????????????????
????(1).file??????????????????????????????????λ???·????
????(2).path?????????????·????Ant????????????????????
????(3).value ????????????????????????
????(4).key ???????????????
??????? file path ?? value?????????
????3.filelist?????Filelist ??????????????????б????????????????????filelist?????е???????????????????????????????е??????
????(1).dir????????????????????
????(2).files ????????????????б??
????(3).refid ??????????????<filelist>?????á?
??????? dir ?? files ??????????????????refid(????????£?dir??files???????????)??
????4.fileset????
????Fileset ??????????????????????????????<fileset>?????????????ant???????????????fileset?????????????????е?fileset?????????????????fileset ???????б??
????(1).dir???fileset ???????
????(2).casesensitive???????false????????????????fileset?????????Сд??????????true??
????(3).defaultexcludes ????????????????????????????true??
????(4).excludes ????????????????????????б??
????(5).excludesfile ?????а?????????????????????????
????(6).includes ??????????????????????????б??
????(7).includesfile ?????а?????????????????????
????5.patternset ????
????Fileset ??????????飬??patternset?????????飬???????????????<patternset>???4???????includes excludex includexfile ?? excludesfile????fileset?????Patternset ?????????????????include??exclude??includefile ?? excludesfile??
??????
???·???
??????????????????
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