User Tools

Site Tools


programming:java:ant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:java:ant [2023/11/01 07:31] – removed - external edit (Unknown date) 127.0.0.1programming:java:ant [2023/11/01 07:31] (current) – ↷ Page moved from camunda:programming:java:ant to programming:java:ant skipidar
Line 1: Line 1:
 +===== Apache Ant =====
  
 +=== Debugging Ant ===
 +To debug Ant you can enable let ant wait for the debugger to attach,
 +then you may attach to the debugger from Eclipse IDE.
 +
 +To make a java application wait for debugger to attach the following JVM params have to be passed to it 
 +<code>
 +**-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044**
 +</code>
 +To Ant they may be passed via the environment param **ANT_OPTS** \\
 +After that you can launch the ant applicaion.
 +<code>
 +cls
 +
 +$env:ANT_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044"
 +echo ($env:ANT_OPTS)
 +
 +#ant createXLSFile
 +ant writeProperties
 +</code>
 +
 +
 +To attach with the debugger with Eclipse IDE use the Debug COnfiguration and set the Breaking Point, to stop on an uncatched Exception \\
 +{{http://i520.photobucket.com/albums/w327/schajtan/2015-06-18_13-36-44_zpshnsjyjju.png}}