Ant - How to diagnose a problem?

Card Puncher Data Processing

About

This page gives you hints on how to diagnose a problem with Ant.

List

Verbose and debug flag

Run Ant with the flag -verbose. For more information, try flag -debug.

Echo

echo element

Diagnostic

  • From an IDE, use the <diagnostics> task to run the same tests as an ant task.
  • From the command line:
ant -diagnostics
------- Ant diagnostics report -------
Apache Ant(TM) version 1.8.4 compiled on May 22 2012

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.8.4 in file:/C:/ant/lib/ant.jar

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
ant.java.version: 1.6
Is this the Apache Harmony VM? no
Is this the Kaffe VM? no
Is this gij/gcj? no
ant.core.lib: C:\ant\lib\ant.jar
ant.home: C:\ant

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:\ant
activation-1.1.jar (62983 bytes)
ant-antlr.jar (11550 bytes)
ant-apache-bcel.jar (14548 bytes)
ant-apache-bsf.jar (9733 bytes)
ant-apache-log4j.jar (8861 bytes)
ant-apache-oro.jar (45515 bytes)
ant-apache-regexp.jar (9563 bytes)
ant-apache-resolver.jar (9886 bytes)
ant-apache-xalan2.jar (8097 bytes)
ant-commons-logging.jar (9715 bytes)
ant-commons-net.jar (91451 bytes)
ant-jai.jar (28241 bytes)
ant-javamail.jar (13773 bytes)
ant-jdepend.jar (14024 bytes)
ant-jmf.jar (12541 bytes)
ant-jsch.jar (46176 bytes)
ant-junit.jar (108138 bytes)
ant-junit4.jar (12923 bytes)
ant-launcher.jar (18429 bytes)
ant-netrexx.jar (16215 bytes)
ant-swing.jar (13497 bytes)
ant-testutil.jar (21004 bytes)
ant.jar (1941731 bytes)
antlr-2.7.7.jar (445288 bytes)
asm-2.2.3.jar (34832 bytes)
asm-commons-2.2.3.jar (15114 bytes)
asm-tree-2.2.3.jar (16248 bytes)
bcel-5.1.jar (515920 bytes)
bsf-2.4.0.jar (113369 bytes)
bsh-2.0b4.jar (281694 bytes)
bsh-core-2.0b4.jar (143992 bytes)
commons-logging-1.0.4.jar (38015 bytes)
commons-logging-api-1.1.jar (44598 bytes)
commons-net-1.4.1.jar (180792 bytes)
jai-codec-1.1.3.jar (258160 bytes)
jai-core-1.1.3.jar (1900631 bytes)
jasper-compiler-4.1.36.jar (184124 bytes)
jasper-runtime-4.1.36.jar (72397 bytes)
jdepend-2.9.1.jar (57933 bytes)
jruby-0.9.8.jar (1683526 bytes)
js-1.6R7.jar (813521 bytes)
jsch-0.1.42.jar (185746 bytes)
junit-4.8.1.jar (237047 bytes)
log4j-1.2.14.jar (367444 bytes)
mail-1.4.jar (388864 bytes)
maven-artifact-ant-2.0.4-dep.jar (887507 bytes)
NetRexxC.jar (355931 bytes)
oro-2.0.8.jar (65261 bytes)
regexp-1.2.jar (29871 bytes)
regexp-1.3.jar (25429 bytes)
serializer-2.7.1.jar (278281 bytes)
servlet-api-2.3.jar (77977 bytes)
which-1.0.jar (17398 bytes)
xalan-2.7.1.jar (3176148 bytes)
xml-apis-1.3.04.jar (194354 bytes)
xml-resolver-1.2.jar (84091 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Users\gerard
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
All defined tasks are available

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
#---- BEGIN: Which report
Which.version=Which.java:($Revision: 1.2 $) WhichJar.java:($Revision: 1.2 $)
java.version=1.6.0_32
file.encoding=Cp1252
java.ext.dirs=C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.class.path=C:\ant\lib\ant-launcher.jar;C:\TimesTen\TT1122~1\lib\ttjdbc5.jar;C:\ant\lib\activation-1.1.jar;C:\ant\lib\ant-antlr.jar;C:\ant\lib\ant-apache-bcel.jar;C:\ant\lib\ant-apache-bsf.jar;C:\ant\lib\ant-apache-log4j.jar;C:\ant\lib\ant-apache-oro.jar;C:\ant\lib\ant-apache-regexp.jar;C:\ant\lib\ant-apache-resolver.jar;C:\ant\lib\ant-apache-xalan2.jar;C:\ant\lib\ant-commons-logging.jar;C:\ant\lib\ant-commons-net.jar;C:\ant\lib\ant-jai.jar;C:\ant\lib\ant-javamail.jar;C:\ant\lib\ant-jdepend.jar;C:\ant\lib\ant-jmf.jar;C:\ant\lib\ant-jsch.jar;C:\ant\lib\ant-junit.jar;C:\ant\lib\ant-junit4.jar;C:\ant\lib\ant-launcher.jar;C:\ant\lib\ant-netrexx.jar;C:\ant\lib\ant-swing.jar;C:\ant\lib\ant-testutil.jar;C:\ant\lib\ant.jar;C:\ant\lib\antlr-2.7.7.jar;C:\ant\lib\asm-2.2.3.jar;C:\ant\lib\asm-commons-2.2.3.jar;C:\ant\lib\asm-tree-2.2.3.jar;C:\ant\lib\bcel-5.1.jar;C:\ant\lib\bsf-2.4.0.jar;C:\ant\lib\bsh-2.0b4.jar;C:\ant\lib\bsh-core-2.0b4.jar;C:\ant\lib\commons-logging-1.0.4.jar;C:\ant\lib\commons-logging-api-1.1.jar;C:\ant\lib\commons-net-1.4.1.jar;C:\ant\lib\jai-codec-1.1.3.jar;C:\ant\lib\jai-core-1.1.3.jar;C:\ant\lib\jasper-compiler-4.1.36.jar;C:\ant\lib\jasper-runtime-4.1.36.jar;C:\ant\lib\jdepend-2.9.1.jar;C:\ant\lib\jruby-0.9.8.jar;C:\ant\lib\js-1.6R7.jar;C:\ant\lib\jsch-0.1.42.jar;C:\ant\lib\junit-4.8.1.jar;C:\ant\lib\log4j-1.2.14.jar;C:\ant\lib\mail-1.4.jar;C:\ant\lib\maven-artifact-ant-2.0.4-dep.jar;C:\ant\lib\NetRexxC.jar;C:\ant\lib\oro-2.0.8.jar;C:\ant\lib\regexp-1.2.jar;C:\ant\lib\regexp-1.3.jar;C:\ant\lib\serializer-2.7.1.jar;C:\ant\lib\servlet-api-2.3.jar;C:\ant\lib\which-1.0.jar;C:\ant\lib\xalan-2.7.1.jar;C:\ant\lib\xml-apis-1.3.04.jar;C:\ant\lib\xml-resolver-1.2.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\lib\tools.jar
os.name=Windows 7
java.vendor=Sun Microsystems Inc.
sun.boot.class.path=C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\resources.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\rt.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\jsse.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\jce.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\charsets.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\modules\jdk.boot.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\classes
java.runtime.name=Java(TM) SE Runtime Environment
#----   END: Which report

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML Parser Location: unknown
Namespace-aware parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: unknown

-------------------------------------------
 XSLT Processor information
-------------------------------------------
XSLT Processor : org.apache.xalan.transformer.TransformerIdentityImpl
XSLT Processor Location: file:/C:/ant/lib/xalan-2.7.1.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) SE Runtime Environment
sun.boot.library.path : C:\Program Files (x86)\Java\jdk1.6.0_32\jre\bin
java.vm.version : 20.7-b02
ant.library.dir : C:\ant\lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : Service Pack 1
java.vm.specification.name : Java Virtual Machine Specification
user.dir : C:\ant
java.runtime.version : 1.6.0_32-b05
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\endorsed
os.arch : x86
java.io.tmpdir : C:\Users\gerard\AppData\Local\Temp\
line.separator : 

java.vm.specification.vendor : Sun Microsystems Inc.
user.variant : 
os.name : Windows 7
ant.home : C:\ant
sun.jnu.encoding : Cp1252
java.library.path : C:\Program Files (x86)\Java\jdk1.6.0_32\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Oracle\Middleware\EPMSystem11R1\bin-32;C:\Oracle\Middleware\EPMSystem11R1\products\ExcelAddin\bin;C:\TimesTen\TT1122~1\bin;C:\TimesTen\TT1122~1\ttoracle_home\instantclient_11_2;C:\app\gerard\product\11.2.0\client_32bit\bin;C:\app\gerard\product\11.2.0\client_1\bin;C:\OracleBI\server\Bin;C:\OracleBI\web\bin;C:\OracleBI\web\catalogmanager;C:\OracleBI\SQLAnywhere;C:\Program Files (x86)\Java\jdk1.6.0_32\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Calibre2\;C:\Program Files\jEdit;C:\Oracle\Middleware\EPMSystem11R1\\common\ODBC-64\Merant\6.0\Drivers;C:\Oracle\Middleware\EPMSystem11R1\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\ant\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Nmap;.
java.specification.name : Java Platform API Specification
java.class.version : 50.0
sun.management.compiler : HotSpot Client Compiler
os.version : 6.1
user.home : C:\Users\gerard
user.timezone : Europe/Berlin
java.awt.printerjob : sun.awt.windows.WPrinterJob
file.encoding : Cp1252
java.specification.version : 1.6
user.name : gerard
java.class.path : C:\ant\lib\ant-launcher.jar;C:\TimesTen\TT1122~1\lib\ttjdbc5.jar;C:\ant\lib\activation-1.1.jar;C:\ant\lib\ant-antlr.jar;C:\ant\lib\ant-apache-bcel.jar;C:\ant\lib\ant-apache-bsf.jar;C:\ant\lib\ant-apache-log4j.jar;C:\ant\lib\ant-apache-oro.jar;C:\ant\lib\ant-apache-regexp.jar;C:\ant\lib\ant-apache-resolver.jar;C:\ant\lib\ant-apache-xalan2.jar;C:\ant\lib\ant-commons-logging.jar;C:\ant\lib\ant-commons-net.jar;C:\ant\lib\ant-jai.jar;C:\ant\lib\ant-javamail.jar;C:\ant\lib\ant-jdepend.jar;C:\ant\lib\ant-jmf.jar;C:\ant\lib\ant-jsch.jar;C:\ant\lib\ant-junit.jar;C:\ant\lib\ant-junit4.jar;C:\ant\lib\ant-launcher.jar;C:\ant\lib\ant-netrexx.jar;C:\ant\lib\ant-swing.jar;C:\ant\lib\ant-testutil.jar;C:\ant\lib\ant.jar;C:\ant\lib\antlr-2.7.7.jar;C:\ant\lib\asm-2.2.3.jar;C:\ant\lib\asm-commons-2.2.3.jar;C:\ant\lib\asm-tree-2.2.3.jar;C:\ant\lib\bcel-5.1.jar;C:\ant\lib\bsf-2.4.0.jar;C:\ant\lib\bsh-2.0b4.jar;C:\ant\lib\bsh-core-2.0b4.jar;C:\ant\lib\commons-logging-1.0.4.jar;C:\ant\lib\commons-logging-api-1.1.jar;C:\ant\lib\commons-net-1.4.1.jar;C:\ant\lib\jai-codec-1.1.3.jar;C:\ant\lib\jai-core-1.1.3.jar;C:\ant\lib\jasper-compiler-4.1.36.jar;C:\ant\lib\jasper-runtime-4.1.36.jar;C:\ant\lib\jdepend-2.9.1.jar;C:\ant\lib\jruby-0.9.8.jar;C:\ant\lib\js-1.6R7.jar;C:\ant\lib\jsch-0.1.42.jar;C:\ant\lib\junit-4.8.1.jar;C:\ant\lib\log4j-1.2.14.jar;C:\ant\lib\mail-1.4.jar;C:\ant\lib\maven-artifact-ant-2.0.4-dep.jar;C:\ant\lib\NetRexxC.jar;C:\ant\lib\oro-2.0.8.jar;C:\ant\lib\regexp-1.2.jar;C:\ant\lib\regexp-1.3.jar;C:\ant\lib\serializer-2.7.1.jar;C:\ant\lib\servlet-api-2.3.jar;C:\ant\lib\which-1.0.jar;C:\ant\lib\xalan-2.7.1.jar;C:\ant\lib\xml-apis-1.3.04.jar;C:\ant\lib\xml-resolver-1.2.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\lib\tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : C:\Program Files (x86)\Java\jdk1.6.0_32\jre
sun.java.command : org.apache.tools.ant.launch.Launcher -cp C:\TimesTen\TT1122~1\lib\ttjdbc5.jar; -diagnostics
java.specification.vendor : Sun Microsystems Inc.
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode, sharing
java.version : 1.6.0_32
java.ext.dirs : C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path : C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\resources.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\rt.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\jsse.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\jce.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\charsets.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\lib\modules\jdk.boot.jar;C:\Program Files (x86)\Java\jdk1.6.0_32\jre\classes
java.vendor : Sun Microsystems Inc.
file.separator : \
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : windows
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is C:\Users\gerard\AppData\Local\Temp\
Temp dir is writeable
Temp dir alignment with system clock is 47 ms

-------------------------------------------
 Locale information
-------------------------------------------
Timezone Central European Time offset=7200000

-------------------------------------------
 Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection

Documentation / Reference







Share this page:
Follow us:
Task Runner