# how to set environment path in ant?

I want to setup ant as environment variable so that i can access any directly from any location. So can anybody explain how to set environment path?

Executing sh from ant to export the environment variable:

<property environment="env"/>
<exec executable="sh">
<arg value="-c"/>
<arg value="export PATH=${env.Path}:${myPath}"/>
</exec>