This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
The thing that's relevant to that message is the PATH, and that looks fine, if[/if] there's a file named \\bfdevbuild\tools\ant\bin\ant.bat accessible from your system. If there isn't, then find where ant.bat really is, and change the PATH to point to its exact directory.
If it [i]is there, then perhaps you just need to close your terminal window and open a new one so it picks up these new environment variables.