Discussion:
New PropertyHelper to Easily Add Colors to Ant Output
Joe's Diner Webmaster
2017-01-14 00:32:50 UTC
Permalink
Here is a little PropertyHelper I wrote that easily allows adding colors to
Ant tasks' output. Hopefully it will be of use to others.

Apache Ant Output Colorizor

Description:
An easy way to add color to Apache Ant build output. Unlike many other Ant
color utilities, this one does not automatically color your output based on
rules, but allows explicit control of colors and formatting from within the
Ant build file itself. Requires Ant version 1.8 or above and color support
from your terminal.

Note that this library is not doing any real magic and is just a convenient
wrapper around ANSI color codes.

Compatibility: Ant version 1.8 or above
URL: http://www.joesdiner.org/programs/ant-colorizor/
Contact: ***@joesdiner.org
License: MIT License

Also attached is a patchfile to add this project to the list of "External
Tools and Tasks" on the Ant website, as requested in the FAQ.



Joey
Stefan Bodewig
2017-01-15 13:47:28 UTC
Permalink
Post by Joe's Diner Webmaster
Here is a little PropertyHelper I wrote that easily allows adding colors to
Ant tasks' output. Hopefully it will be of use to others.
Thanks, I've just added it to the site. Unfortunatly the patch didn't
make it through, so please verify it really show what you wanted to see.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org
Jan Matèrne (jhm)
2017-01-16 07:29:56 UTC
Permalink
nice



Jan



Von: ***@dogsplayingpoker.org [mailto:***@dogsplayingpoker.org] Im Auftrag von Joe's Diner Webmaster
Gesendet: Samstag, 14. Januar 2017 01:33
An: ***@ant.apache.org
Betreff: New PropertyHelper to Easily Add Colors to Ant Output



Here is a little PropertyHelper I wrote that easily allows adding colors to Ant tasks' output. Hopefully it will be of use to others.



Apache Ant Output Colorizor



Description:

An easy way to add color to Apache Ant build output. Unlike many other Ant color utilities, this one does not automatically color your output based on rules, but allows explicit control of colors and formatting from within the Ant build file itself. Requires Ant version 1.8 or above and color support from your terminal.



Note that this library is not doing any real magic and is just a convenient wrapper around ANSI color codes.



Compatibility: Ant version 1.8 or above

URL: http://www.joesdiner.org/programs/ant-colorizor/

Contact: ***@joesdiner.org

License: MIT License



Also attached is a patchfile to add this project to the list of "External Tools and Tasks" on the Ant website, as requested in the FAQ.







Joey
Christopher BROWN
2017-01-18 10:57:37 UTC
Permalink
Hi,

Is there a way to detect if Ant is running on a compatible terminal?

For example, I sometimes forward Ant's output to a text file, such as "ant
sometarget > sometarget.txt"; in such cases, I'd prefer not to include
escape codes.

Thanks,
Christopher
Post by Jan Matèrne (jhm)
nice
Jan
Auftrag von Joe's Diner Webmaster
Gesendet: Samstag, 14. Januar 2017 01:33
Betreff: New PropertyHelper to Easily Add Colors to Ant Output
Here is a little PropertyHelper I wrote that easily allows adding colors
to Ant tasks' output. Hopefully it will be of use to others.
Apache Ant Output Colorizor
An easy way to add color to Apache Ant build output. Unlike many other Ant
color utilities, this one does not automatically color your output based on
rules, but allows explicit control of colors and formatting from within the
Ant build file itself. Requires Ant version 1.8 or above and color support
from your terminal.
Note that this library is not doing any real magic and is just a
convenient wrapper around ANSI color codes.
Compatibility: Ant version 1.8 or above
URL: http://www.joesdiner.org/programs/ant-colorizor/
License: MIT License
Also attached is a patchfile to add this project to the list of "External
Tools and Tasks" on the Ant website, as requested in the FAQ.
Joey
Loading...