Use ant NoBannerLogger and -emacs options for better output

It can be hard to get useful data from a huge ant output file. So I like to use two options when running ant:

1. -logger org.apache.tools.ant.NoBannerLogger to strip out any empty targets.
2. -emacs to strip out leading [taskname]

Here is a comparison of running a simple build.xml target:
  <target name="test" depends="test2, test3, test4">
<echo message="Running target test"/>
</target>

<target name="test2"/>
<target name="test3"/>
<target name="test4"/>
/home/javahowto > ant test
Buildfile: build.xml

test2:

test3:

test4:

test:
[echo] Running target test
/home/javahowto > ant -logger org.apache.tools.ant.NoBannerLogger test
Buildfile: build.xml

test:
[echo] Running target test
/home/javahowto > ant -emacs -logger org.apache.tools.ant.NoBannerLogger test
Buildfile: build.xml

test:
Running target test

Followers

Pageviews Last 7 Days