Re: New PropertyHelper to Easily Add Colors to Ant Output

Christopher BROWN <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <CAHL_zcNEK4SqEWs8S55w_CdAw6d420-KW896DdDFkSmPkh=u0Q@mail.gmail.com>
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) <[email protected]> wrote:

> nice
>
>
>
> Jan
>
>
>
> Von: [email protected] [mailto:[email protected]] Im
> Auftrag von Joe's Diner Webmaster
> Gesendet: Samstag, 14. Januar 2017 01:33
> An: [email protected]
> 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: [email protected]
>
> 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
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.