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.
|