如果是直接写ant,后面不加什么参数,那么有时候输出的信息会很少,比如有target(init)是创建一些目录,而这些目录已经存在,
那么ant什么也不输出
init:
compile:
[javac] E:\Document\AntProject\build.xml:14: warning: 'includeantruntime' wa
s not set, defaulting to build.sysclasspath=last; set to false for repeatable bu
ilds
如果是ant -verbose,会输出非常详尽的信息
init:
[mkdir] Skipping E:\Document\AntProject\build\classes because it already exi
sts.
[mkdir] Skipping E:\Document\AntProject\dist because it already exists.
[mkdir] Skipping E:\Document\AntProject\doc because it already exists.
compile:
[javac] E:\Document\AntProject\build.xml:14: warning: 'includeantruntime' wa
s not set, defaulting to build.sysclasspath=last; set to false for repeatable bu
ilds
-verbose和-debug输出的信息差不多详细,它们还会输出target的执行顺序,例如
Build sequence for target(s) `deploy' is [init, compile, doc, deploy]
那么ant什么也不输出
init:
compile:
[javac] E:\Document\AntProject\build.xml:14: warning: 'includeantruntime' wa
s not set, defaulting to build.sysclasspath=last; set to false for repeatable bu
ilds
如果是ant -verbose,会输出非常详尽的信息
init:
[mkdir] Skipping E:\Document\AntProject\build\classes because it already exi
sts.
[mkdir] Skipping E:\Document\AntProject\dist because it already exists.
[mkdir] Skipping E:\Document\AntProject\doc because it already exists.
compile:
[javac] E:\Document\AntProject\build.xml:14: warning: 'includeantruntime' wa
s not set, defaulting to build.sysclasspath=last; set to false for repeatable bu
ilds
-verbose和-debug输出的信息差不多详细,它们还会输出target的执行顺序,例如
Build sequence for target(s) `deploy' is [init, compile, doc, deploy]
Complete build sequence is [init, compile, doc, deploy, ]
-quiet(-q) 刚好和-verbose(-v)-debug(-d)相反,输出的信息比不写如何参数还要少
E:\Document\AntProject>ant -quiet
[javac] E:\Document\AntProject\build.xml:14: warning: 'includeantruntime' wa
s not set, defaulting to build.sysclasspath=last; set to false for repeatable bu
ilds
BUILD SUCCESSFUL
Total time: 2 seconds