title: ClassPath in Ant for Javac task
body: <p>I have following ant file to build. But unfortunately</p>
  
  <pre><code>&lt;project default="build.deploy.start" basedir="."&gt;
  
      &lt;property name="target.dir" value="C:\tom\webapp\"/&gt;
      &lt;property name="basesrc.dir" value="c:\SimpleChat\"/&gt;   
      &lt;property name="classes.target" value="${basesrc.dir}\WebContent\WEB-INF\classes"/&gt;
      &lt;property name="src.dir" value="${basesrc.dir}\src"/&gt;
      &lt;property name="classpath" value="${basesrc.dir}\WebContent\WEB-INF\classes"/&gt;
  
      &lt;!-- Classpath for the project --&gt;  
      &lt;path id="master-classpath"&gt;
        &lt;fileset dir="${classpath}"&gt;
          &lt;include name="*.jar"/&gt;
        &lt;/fileset&gt;
      &lt;/path&gt;
  
      &lt;!-- init method which will ensure that all directories exists before we start building/deploying--&gt;
      &lt;target name="init"&gt;
          &lt;mkdir dir="${target.dir}\js"/&gt;
          &lt;mkdir dir="${target.dir}\images"/&gt;
          &lt;mkdir dir="${target.dir}\pages"/&gt;
          &lt;mkdir dir="${target.dir}\WEB-INF\lib"/&gt;
          &lt;mkdir dir="${target.dir}\WEB-INF\classes"/&gt;
      &lt;/target&gt;
  
      &lt;!--To build an application so that files can be deloyed--&gt;
      &lt;target name="build" depends="init"&gt;
          &lt;javac srcdir="${src.dir}" destdir="${classes.target}"&gt;
              &lt;classpath refid="master-classpath"/&gt;
          &lt;/javac&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I have respective jar files in the LIB directory specified in path element. and yet it gives  compilation error that package does not exists as it cannot see my JAR file.</p>
  
  <p>Can you please point out the mistake that I am doing to include that jar correctly?</p>