title: Using Ant for S3 Uploading
body: <p>I tried to implement the <a href="http://code.google.com/p/awstasks/" rel="nofollow">awstasks Class</a> for uploading files via an ant script to an S3 bucket.</p>
  
  <p>Downloaded all dependencies and used the following code:</p>
  
  <pre><code>&lt;taskdef name="S3Upload" classname="dak.ant.taskdefs.S3Upload"&gt;
  &lt;classpath refid="classpath.compile"/&gt;
  &lt;/taskdef&gt;
  
      &lt;target name="final2S3"&gt;
          &lt;basename property="customer.id" file="${basedir}"/&gt;
          &lt;basename property="customer.name" file="${basedir.parent.parent}"/&gt;
          &lt;basename property="customer.campaign" file="${basedir.parent}"/&gt;
          &lt;basename property="customer.final" file="${basedir.parent}\_final\${customer.id}\"/&gt;
  
          &lt;S3Upload verbose="true"
                          accessId="${aws.accessId}"
                          secretKey="${aws.secretKey}"
                          bucket="${aws.bucket}\${customer.id}"
                          publicRead="true"&gt;
  
                  &lt;fileset dir="${customer.final}"&gt;
                      &lt;include name="**/*.json"/&gt;
                      &lt;include name="**/*.swf"/&gt;
                  &lt;/fileset&gt;
          &lt;/S3Upload&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>I get the following error: </p>
  
  <blockquote>
    <p><code>Reference classpath.compile not found.</code></p>
  </blockquote>
  
  <p>I tried to set the property classpath.compile to the lib folder in the Ant home but nothing changes.</p>