title: "Ant all" not working for me
body: <p>I have got involved in a project. This project uses ant which is not something I am comfortable with. I have checked out the source code and tried running ant on the most outer directory. </p>
  
  <p>Running 'ant' in commando prompt takes 1 sec and I get a BUILD SUCCESFULL message. If I run 'ant all' I get a</p>
  
  <p><code>BUILD FAILED. Java.io.IOExceptio: Cannot run program "ant": CreateProcess=2, the system cannot find the file specified</code> and then a long stacktrace.</p>
  
  <p>Most of the people on the project runs OS-X while I use Windows XP. </p>
  
  <p>Any help or information is appreciated :)</p>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>&lt;target name="-all-submodules"&gt;     
          &lt;subantlight target="all"&gt;
              &lt;filelist refid="ordered_build_files"/&gt;
          &lt;/subantlight&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>In another xml file</p>
  
  <pre><code>&lt;macrodef name="subantlight"&gt;
          &lt;attribute name="target"/&gt;
          &lt;element name="files" optional="no" implicit="true" description="Filessets/lists of build files"/&gt;
          &lt;sequential&gt;
              &lt;apply executable="ant" failonerror="true"&gt;
                &lt;arg value="-f"/&gt;
                &lt;srcfile/&gt;
                &lt;arg value="@{target}"/&gt;
                &lt;files/&gt;
              &lt;/apply&gt;
          &lt;/sequential&gt;
  &lt;/macrodef&gt;
  </code></pre>
  
  <p>This is what throws IOException when it hits the line with "apply executeable..".</p>
  
  <p><strong>UPDATED EDIT:</strong>
  If i set the absolute path like this</p>
  
  <pre><code>&lt;macrodef name="subantlight"&gt;
              &lt;attribute name="target"/&gt;
              &lt;element name="files" optional="no" implicit="true" description="Filessets/lists of build files"/&gt;
              &lt;sequential&gt;
                  &lt;apply executable="MyAbsolutePathHereToAnt.bat" failonerror="true"&gt;
                    &lt;arg value="-f"/&gt;
                    &lt;srcfile/&gt;
                    &lt;arg value="@{target}"/&gt;
                    &lt;files/&gt;
                  &lt;/apply&gt;
              &lt;/sequential&gt;
      &lt;/macrodef&gt;
  </code></pre>
  
  <p>Everything works.</p>
  
  <p>I have set ANT_HOME to my ant directory. I have set my JAVA_HOME to Java JDK directory. In my PATH I have set %ANT_HOME%\bin;%JAVA_HOME%\bin</p>
  
  <p>Calling echo %ANT_HOME% produces the right path.</p>
  
  <p>I can't see what I am during wrong here.</p>