How do I make ANT verbose?

sproketboy picture sproketboy · Apr 7, 2012 · Viewed 56.9k times · Source

Trying to build my project with ANT in idea 10 and I get a compile error but I don't see the actual error.

How do I make ANT verbose?

All I see is:

javac build.xml:303: Compile failed; see the compiler error output for
details. at
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150)
etc.... rest of ANT stack trace

My task looks like this:

<javac includeantruntime="false" destdir="${webapp.classes.dir}" debug="true">
    <src path="${src.dir}"/>
    <classpath refid="project.classpath"/>
</javac>

Answer

samlewis picture samlewis · Apr 7, 2012

To enable verbose output for ant:

ant -v

or

ant -verbose