Using other Ant loggers
You also can use other Ant loggers; see
Listeners &
Loggers in the Ant documentation for more information.
For example, you can use the AnsiColorLogger to colorize the messages written on the screen.
- dita command
-
To use a custom Ant logger with the dita command, add the logger to the
ANT_ARGS environment variable by calling the following command before calling the
dita command:
export ANT_ARGS="-logger org.apache.tools.ant.listener.AnsiColorLogger"
Now you will get colorized messages when the dita command runs.
Environment variables can also be set permanently. See
How do I set or
change the PATH system variable? for information on how to set the PATH
environment variable. You can set the ANT_ARGS environment variable in the same
way.
- Ant
-
If you prefer to launch the DITA-OT directly from Ant, you can also add the logger to the
ANT_ARGS environment variable, as explained above. You can also set the logger with the
-logger parameter when calling Ant.
ant -logger org.apache.tools.ant.listener.AnsiColorLogger