How we can set the path environment variable of ant?
Answer / Deep Agnihotri
To set the PATH environment variable for Ant, you should modify the system properties in your build.xml file. Here's an example of how to do it:
```
<project>
<property name="path.separator" value=","/>
<property name="ant.home" value="/path/to/ant"/>
<property environment="global" key="Path">${path.separator}${ant.home}/bin</property>
</project>
```
Replace `/path/to/ant` with the actual path to your Ant installation.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain using ant and give an small example?
What is a build tool?
How we can create a jar using ant?
Can I change/override ant properties when I use ant-contrib foreach task?
How to use ant-contrib tasks?
Can I put the contents of a classpath or fileset into a property?
What are the core concepts of ant?
Explain how to compile using ant script?
How many types of build tool you know?
How we can echo message in ant?
What is advantage of ant 1.7.1?
What is built-in properties? And how many built-in properties?