title: ant sql task classpath problem
body: <p>I have the following ant <code>build.xml</code>:</p>
  
  <pre><code>&lt;path id="antclasspath"&gt;
      &lt;fileset dir="lib"&gt;
          &lt;include name="*.jar"/&gt;
      &lt;/fileset&gt;
  &lt;/path&gt;
  
  &lt;property name="pathvar" refid="antclasspath" /&gt;
  &lt;echo message="Classpath is ${pathvar}"/&gt;
  
  &lt;sql
      driver="oracle.jdbc.driver.OracleDriver"
      url="jdbc:oracle:thin:@myserver.hu:1521:dbid"
      userid="myuserid"
      password="mypassword"
      print="yes"
      classpathref="antclasspath"&gt;
      select * from table
  &lt;/sql&gt;
  </code></pre>
  
  <p>There is an Oracle JDBC driver in the lib directory. Echo prints it out correctly:</p>
  
  <pre><code>Classpath is E:\MyDir\lib\ojdbc14-10_2_0_3.jar
  </code></pre>
  
  <p>Somehow sql ant task is still not able to load the Oracle driver:</p>
  
  <pre><code>E:\MyDir\build.xml:100: Class Not Found: JDBC driver oracle.jdbc.driver.OracleDriver could not be loaded
  </code></pre>
  
  <p>What is the problem with this build.xml? It is quite strange that it was working few times yesterday, but never again.</p>
  
  <p>Using <code>classpath="E:\MyDir\lib\ojdbc14-10_2_0_3.jar"</code> in the task gives the same error message.</p>
  
  <p>I'm using ant 1.7.1 (built in Netbeans 6.5)</p>