Explain how to use Runtime in ANT.
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”);
Explain how to use Runtime in ANT.
The class name is org.apache.tools.ant.taskdefs.ExecTask.
The task can be created by using the code in the customized ant Task.
ExecTask compile = (ExecTask)project.createTask("exec");< /P >