如何将ant任务名称输出格式化到控制台以包含项目名称?

如何将ant任务名称输出格式化到控制台以包含项目名称?,ant,Ant,我开始想蚂蚁了。我正在建立一个模块系统,我们有许多类似结构的子项目 主项目有一个构建内容目标,如有必要,它会在每个子项目中调用构建内容目标 这将导致三条“构建内容”消息被输出到控制台(而且还会有更多消息,因为将来至少还会包含一个子项目) 是否有一个参数用于格式化此消息,使其以项目名称作为前缀?使用BigProjectLogger: This logger is designed to make examining the logs of a big build easier, especiall

我开始想蚂蚁了。我正在建立一个模块系统,我们有许多类似结构的子项目

主项目有一个构建内容目标,如有必要,它会在每个子项目中调用构建内容目标

这将导致三条“构建内容”消息被输出到控制台(而且还会有更多消息,因为将来至少还会包含一个子项目)


是否有一个参数用于格式化此消息,使其以项目名称作为前缀?

使用BigProjectLogger:

This logger is designed to make examining the logs of a big build easier, especially those run under continuous integration tools. It 
1.When entering a child project, prints its name and directory
2.When exiting a child project, prints its name
3.Includes the name of the project when printing a target
4.Omits logging the names of all targets that have no direct task output
5.Includes the build finished timestamp of the TimeStamp logger

This is useful when using <subant> to build a large project from many smaller projects -the output shows which particular project is building.
此记录器旨在使检查大型构建的日志更容易,尤其是在持续集成工具下运行的日志。信息技术
1.输入子项目时,打印其名称和目录
2.退出子项目时,打印其名称
3.打印目标时包括项目名称
4.忽略记录没有直接任务输出的所有目标的名称
5.包括时间戳记录器的构建完成时间戳
当使用从许多较小的项目中构建大型项目时,这非常有用-输出显示正在构建的特定项目。

请参见

接受,因为它确实起到了作用-我刚刚了解到,我可以用自己的格式编写自己的记录器