title: Java compilation issue in loop
body: <p>I was trying to perform java compilation using ant 1.8.1. Due to the requirement, I have to compile number of java source folders (containing java files) in a loop. These folder names will be derived from the java project mentioned in the property file. From the loop itself I need to perform java compilation. So I used a macrodef where I am passing all the required parameters for java source compilation. Essentially, I have a main build.xml file from where I am calling build_Compile.xml (responsibility of this is to figure out which Java projects to build and their corresponding source folders and perform compilation in loop for each project). To achieve this I use a macrodef defined in a helper file (Helper.xml) file which contains number of macrodef.</p>
  
  <p>However, when I execute the task, I am getting an error which implies that java src path(being passed as parameter) is not being found properly. What I noticed is the path of the build files (where all my build*.xml files reside) is being appended before the java src directory path(passed as parameter in the macrodef). I printed the parameter being passed to the macrodef which looks as expected. Here is the snippet which I am using for java source compilation - </p>
  
  <p>
  .....
  .....
  
          
          
          
          
          
          
          
          </p>
  
  <pre><code>    &lt;javac  srcdir="@{srcpath}" 
              destdir="./Temp/build/classes/" 
              includeAntRuntime="false" 
              classpath="${classpath}" 
              includes="${replacedartefacts}"&gt;
      &lt;/javac&gt;
  </code></pre>
  
  <p>Sorry for the long story. Appreciate any pointer/guideline. Thanks.</p>