Java ANT Question:

Download Job Interview Questions and Answers PDF

Do you know how to debug my ant script?

ANT Interview Question
ANT Interview Question

Answer:

Ant script can be debugged in the following ways:

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
By using project.log (“message”) in the java script or the customized ant task.
By running Ant with –verbose / -debug options. These options provide more information on what is the process going and at which location

Download ANT Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me how to use Runtime in ant?Tell me how to use ant-contrib tasks?