Explain how to debug my ANT script

Explain how to debug my ANT script.

ANT script can be debugged in the following ways:

1. By echoing at the place to debug. The problem is easily known. This is similar to printf() function in C and System.out.println() in Java.
2. By using project.log (“message”) in the java script or the customized ant task.
3. By running ANT with –verbose / -debug options. These options provide more information on what is the process going and at which location.

Explain how to debug my ANT script.

The echo can be used like the alert() of the JavaScript.

Use project.log("msg") in javascript or custom ant task.

Run ANT with -verbose, or even -debug, to get more information on what it is doing, and where.
How can I write my own ANT task?
How can I write my own ANT task? - Define the user defined custom script and use taskdef to define in the custom script.....
Explain how to use ANT-contrib tasks
Explain how to use ANT-contrib tasks - Copy the ant-contrib.jar to the directory ant*/lib. Copy ant-contrib.jar to your ant*/lib directory.
....
Explain how to make ANT user interactive
Explain how to make ANT user interactive - The org.apache.tools.ant.input.InputHandler interface is used to implement the user input.....
Post your comment