读书人

Ant 用特点控制Ant

发布时间: 2013-01-23 10:44:49 作者: rapoo

Ant 用特征控制Ant

?输出,在特征output在定义时输出内容,未定义时不输出内容,与特征的值无关:

? ? 或

输出:

?输出:

e:\antspace\property>antBuildfile: e:\antspace\property\build.xmlmkbuild:   [delete] Deleting directory e:\antspace\property\build    [mkdir] Created dir: e:\antspace\property\buildbuildjava:BUILD SUCCESSFULTotal time: 0 secondse:\antspace\property>ant -Dbuild=aBuildfile: e:\antspace\property\build.xmlmkbuild:   [delete] Deleting directory e:\antspace\property\build    [mkdir] Created dir: e:\antspace\property\buildbuildjava:    [javac] Compiling 1 source file to e:\antspace\property\buildBUILD SUCCESSFULTotal time: 0 seconds

?

?

读书人网 >互联网

热点推荐