ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher BROWN <br...@reflexe.fr>
Subject Re: New PropertyHelper to Easily Add Colors to Ant Output
Date Wed, 18 Jan 2017 10:57:37 GMT
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


On 16 January 2017 at 08:29, Jan Matèrne (jhm) <apache@materne.de> wrote:

> nice
>
>
>
> Jan
>
>
>
> Von: joey@dogsplayingpoker.org [mailto:joey@dogsplayingpoker.org] Im
> Auftrag von Joe's Diner Webmaster
> Gesendet: Samstag, 14. Januar 2017 01:33
> An: user@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: webmaster@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
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message