我正在使用Ant的<parallel>
任务执行多个同时使用<exec>
任务的目标,但由于输出被交错,所以很难阅读。有没有办法更改每行输出前面出现的[exec]
标签以使用命令或目标名称?
例如,在运行pdepend
和phpcpd
时,我想将[exec]
更改为[pdepend]
和[phpcpd]
:
pdepend:
[exec] PHP_Depend 0.10.5 by Manuel Pichler
[exec]
phpcpd:
[exec] Parsing source files:
[exec] phpcpd 1.3.2 by Sebastian Bergmann.
[exec]
[exec] ............................................................ 60
[exec] Found 26 exact clones with 640 duplicated lines in 28 files:
[exec]
[exec] - application/modules/controllers/IndexController.php:16-31
[exec] ............................................................ 120
[exec] application/modules/controllers/ErrorController.php:15-30
[exec]
[exec] - application/modules/controllers/PhotosController.php:24-33
[exec] ............................................................ 180
[exec] ............................................................ 240
变成
pdepend:
[pdepend] PHP_Depend 0.10.5 by Manuel Pichler
[pdepend]
phpcpd:
[phpcpd] Parsing source files:
[phpcpd] phpcpd 1.3.2 by Sebastian Bergmann.
[phpcpd]
[pdepend] ............................................................ 60
[phpcpd] Found 26 exact clones with 640 duplicated lines in 28 files:
[phpcpd]
[phpcpd] - application/modules/controllers/IndexController.php:16-31
[pdepend] ............................................................ 120
[phpcpd] application/modules/controllers/ErrorController.php:15-30
[phpcpd]
[phpcpd] - application/modules/controllers/PhotosController.php:24-33
[pdepend] ............................................................ 180
[pdepend] ............................................................ 240