Tell me how to use Runtime in ant?
Submitted by: AdministratorThere 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”);
Submitted by: Administrator
ExecTask execTask = (ExecTask)project.createTask (“exec”);
Submitted by: Administrator
Read Online Java ANT Job Interview Questions And Answers
Top Java ANT Questions
☺ | Tell me how to set classpath in ant? |
☺ | How to write your own ant task? |
☺ | Do you know how to debug my ant script? |
☺ | How to use ant to run a Java application? |
☺ | Tell me how to use Runtime in ant? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |