How to see color Ant output in MSYS/Git Bash?

前端 未结 2 494
甜味超标
甜味超标 2021-01-05 00:55

I\'d like to use AnsiColorLogger to get color ouput from Ant. I\'m using Git Bash on Windows.

I tried:

$ ant -logger org.apache.tools.ant.listener.A         


        
2条回答
  •  离开以前
    2021-01-05 01:18

    it's probably even easier to just set the environment variable ANT_ARGS. e.g. just put this in your .bashrc:

    export ANT_ARGS='-logger org.apache.tools.ant.listener.AnsiColorLogger'
    

提交回复
热议问题