title: Classpath problems:running ant java task with Maven Antrun plugin
body: <p>When running ant task from maven ant run plugin I can set maven classpath as an ant property. However when I try to run <code>&lt;ant:java</code> task setting this exact classpath I get the error that the  reference can not be find. As if the whole classpath is interpreted as one jar. Is there a way to somehow set this classpath to ant java task?</p>
  
  <p>(from maven)</p>
  
  <pre><code>&lt;plugin&gt;
     &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; 
       ....
     &lt;property name="compile_classpath" refid="maven.compile.classpath"/&gt;
     ....
  </code></pre>
  
  <p>(from ant)
  ...</p>
  
  <pre><code>&lt;path id="classpath"&gt;
     &lt;path refid="${compile_classpath}"/&gt;
  &lt;/path&gt;
  ...
  &lt;java   classname="..." classpathref="classpath"&gt;
  ...
  &lt;/java&gt;
  </code></pre>
  
  <p>The version of maven ant run plugin is 1.7</p>
  
  <p>If this can not be done is there some way in ant to iterate this classpath string (location of jar files with ';' separator) and set the values of jar location as '