Phing: Fixing Output on OS X

Dec 26 2009

Using Phing on a Mac OS X console sometimes has a strange result: While the Phing script runs correctly, the console displays nothing. The reason for this is that the ANSI color codes used by some versions of Phing are not supported by OS X.

The solution is simple. Change the output logger.

$ phing -logger phing.listener.DefaultLogger ftest

This will use a non-colorized logger.

(Since I use TextMate and run Phing through TextMate, I often leave the color logger on. I wrote my own TextMate Phing bundle that handles, among other things, displaying the output in color on TextMate's dialog window.)

Reference:

http://phing.info/trac/ticket/222



comments powered by Disqus