Explain how to use Runtime in ANT

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 >
How can I use ANT to run a Java application?
How can I use ANT to run a Java application? - The following is an example to run a java application in using ant:...
Explain how to debug my ANT script
Explain how to debug my ANT script - 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....
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.....
Post your comment