title: Ant compile doesn't copy the resources
body: <p>I created my own build.xml which has:</p>
  
  <pre><code>&lt;target name="compile"&gt;
      &lt;mkdir dir="build"/&gt; 
      &lt;javac destdir="build"&gt; 
          &lt;src path="src"/&gt; 
      &lt;/javac&gt;
  &lt;/target&gt;
  
  &lt;target name="build" depends="compile"&gt;
      &lt;mkdir dir="dist"/&gt;
      &lt;jar destfile="dist/app.jar" basedir="build" /&gt;
  &lt;/target&gt;
  
  &lt;target name="run" depends="compile"&gt;
      &lt;java classname="webserver.Loader" classpath="build" fork="true" /&gt;      
  &lt;/target&gt;
  </code></pre>
  
  <p>It works great. When I call ant run so it compiles and runs my application, but my application has a package with icons and it isn't moved to a folder "build" so my application ends with an exception that it couldn't locate my icons. When I move them by myself then it works.</p>
  
  <p>I tried to use</p>
  
  <pre><code>&lt;copy todir="build/app/icons"&gt;
      &lt;fileset dir="src/app/icons"/&gt;
  &lt;/copy&gt;
  </code></pre>
  
  <p>It works, but I would like to do it without the copy command. Is there any parameter to javac? Or something else?</p>
  
  <p>Thank you for answer.</p>