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Ă !
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:
- Have your
ant
install work properly (i.e.java
,%JAVA_HOME%
, ....). - Have your
MinGW
install running and putgcc
in your%PATH%
- 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 forant
Once you get all that,
- Copy
antrc_pre.bat
in%USERPROFILE%
- Copy
ansi.color
in%USERPROFILE%/.ant
- Copy
com.2h2n.tools.ant.dll
in%USERPROFILE%/.ant
- Copy
com.2h2n.tools.ant.jar
in%USERPROFILE%/.ant/lib
- 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.
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)