title: Ant EXEC failing to run bash script
body: <p>I am trying to use ant to run a bash script.</p>
  
  <p>Ive found that the exec directive is the tool for the job</p>
  
  <p>I created a bash script test.sh
  and in my ant target i added:</p>
  
  <pre><code>&lt;project basedir="."&gt;
      &lt;property name="temp.deployment.dir" value="temp_deployment_dir"/&gt;
      &lt;property name="temp.dir" value="temp_upload_dir"/&gt;
      &lt;property name="src.dir" value="www"/&gt;
      &lt;property name="js.dir" value="${src.dir}/public/js"/&gt;
      &lt;property name="css.dir" value="${src.dir}/public/css"/&gt;
      &lt;property name="img.dir" value="${src.dir}/public/images/"/&gt;
      &lt;target name="clean"&gt;
              &lt;delete dir="${temp.dir}"/&gt;
      &lt;/target&gt;
      &lt;target name="update-statics"&gt;
              &lt;mkdir dir="${temp.dir}"/&gt;
              &lt;!--TODO: add statics in --&gt;
      &lt;/target&gt;
      &lt;target name="deploy"&gt;
              &lt;mkdir dir="${$temp.deployment.dir}"/&gt;
              &lt;copy todir="${temp.deployment.dir}"&gt;
                      &lt;fileset dir="${src.dir}"/&gt;
              &lt;/copy&gt;
              &lt;exec executable="bash" newenvironment="false" dir="."&gt;
                  &lt;arg value="cmd_update.sh"/&gt;
              &lt;/exec&gt;
       &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I get build successful when i run it, but the test.sh is never run.</p>
  
  <p>I have googled and searched for what I could be doing wrong but because there is no error I am having trouble debugging it. Does anyone know the proper usage of the exec directive or if there is something I am clearly doing wrong. From What I can tell I am doing it the same as ever other example of exec I have found.</p>