title: Jenkins build error - Cannot run program "ant"
body: <p>I have build.xml set up to run a project to execute selenium test cases. I have mac computer and I can run ant from terminal. But when I try to run from jenkins I get following error. I have specified Ant home in Jenkins' config </p>
  
  <p><code>/usr/local/Cellar/ant/1.9.4/libexec</code></p>
  
  <p>I used homebrew to install ANT<br>
  <code>
  FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
  java.io.IOException: Cannot run program "ant" (in directory "/Users/Shared/Jenkins/Home/workspace/BaublebarTest"): error=2, No such file or directory
      at java.lang.ProcessBuilder.processException(ProcessBuilder.java:478)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:457)
      at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:244)
      at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:216)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:802)
      at hudson.Launcher$ProcStarter.start(Launcher.java:380)
      at hudson.Launcher$ProcStarter.join(Launcher.java:387)
      at hudson.tasks.Ant.perform(Ant.java:217)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      at hudson.model.Run.execute(Run.java:1754)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
  Caused by: java.io.IOException: error=2, No such file or directory
      at java.lang.UNIXProcess.</code>enter code here<code>forkAndExec(Native Method)
      at java.lang.UNIXProcess.&lt;init&gt;(UNIXProcess.java:53)
      at java.lang.ProcessImpl.start(ProcessImpl.java:91)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
      ... 15 more
  Build step 'Invoke Ant' marked build as failure
  Finished: FAILURE</code></p>