Simple & Useful : Remote debugging with Ant
A Ant java call like :
<target name= »run »>
<java classname= »foo.bar.App » fork= »false »>
<classpath refid= »app.classpath » />
</java>
</target>
becomes :
<target name= »run »>
<java classname= »foo.bar.App » fork= »yes« >
<classpath refid= »app.classpath » />
<sysproperty key= »DEBUG » value= »true » />
<jvmarg value= »-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000″ />
</java>
</target>
and is ready to be launch and ‘remote debugged’ from a tool like Eclipse IDE.