Java ANT Question:
Download Job Interview Questions and Answers PDF
Tell me how to use Runtime in ant?
Answer:
There is no need to use Runtime in ant. Because ant has Runtime counterpart by name ExecTask. ExecTask is in the package org.apache.tools.ant.taskdefs. The Task is created by using the code in the customized ant Task. The code snippet is as follows:
ExecTask execTask = (ExecTask)project.createTask (“exec”);
ExecTask execTask = (ExecTask)project.createTask (“exec”);
Download ANT Interview Questions And Answers
PDF
Previous Question | Next Question |
How to use ant to run a Java application? | Do you know how to debug my ant script? |