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">/home/javahowto > ant test
<echo message="Running target test"/>
</target>
<target name="test2"/>
<target name="test3"/>
<target name="test4"/>
Buildfile: build.xml/home/javahowto > ant -logger org.apache.tools.ant.NoBannerLogger test
test2:
test3:
test4:
test:
[echo] Running target test
Buildfile: build.xml/home/javahowto > ant -emacs -logger org.apache.tools.ant.NoBannerLogger test
test:
[echo] Running target test
Buildfile: build.xml
test:
Running target test