vichheann / ant-winsi-color

Allow ant output to be colorized on Windows. (Check the wiki for binaries download)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color Output for Ant on Windows

I use the ant build tool a lot and I find fun to enable the ANSIColorLogger on Unix or Linux system. But this does not work when using ant on Windows NT system. So I decide to make it run, et voilĂ  !

Install

You can just get the zip file from the Files tab section and pass the build section. You may prefer to build from sources, so you will need:

Let's build ...

  1. Have your ant install work properly (i.e. java, %JAVA_HOME%, ....).
  2. Have your MinGW install running and put gcc in your %PATH%
  3. Run ... ant

You should have a zip file containing:

  • com.2h2n.tools.ant.jar
  • com.2h2n.tools.ant.jar.dll
  • a configuration file defining the mapping between ant log level and colors to display
  • a antrc_pre.bat file to setup the environment for ant

Let's try ...

Once you get all that,

  1. Copy antrc_pre.bat in %USERPROFILE%
  2. Copy ansi.color in %USERPROFILE%/.ant
  3. Copy com.2h2n.tools.ant.dll in %USERPROFILE%/.ant
  4. Copy com.2h2n.tools.ant.jar in %USERPROFILE%/.ant/lib
  5. Open a new DOS Console and run ant from the project. You should see colors !!

You can install this file wherever you want. Read the .bat file and ant manual for configuration.

Configuration

Just read the ansi.color file to define your colors. You can install this file wherever you want. Read the antrc_pre.bat file and ant manual for configuration.

Have fun building with ant !! (Or not)

About

Allow ant output to be colorized on Windows. (Check the wiki for binaries download)

License:Apache License 2.0


Languages

Language:Java 85.2%Language:C 14.4%Language:Shell 0.5%