title: Ant jar task include a single class file only
body: <p>i have an ant task </p>
  
  <pre><code>&lt;target name="create_jar" depends="compile"&gt;        
      &lt;jar destfile="build/temp/MyClassJar.jar"  basedir="build/classes/com/company/utils"&gt;
          &lt;manifest&gt;
              &lt;attribute name="Main-Class" value="com.company.utils.MyClass"/&gt;
          &lt;/manifest&gt;
      &lt;/jar&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>the folder build/classes has multiple packages and class files but in my jar i only want to include only two files MyClass.class and MyClass$1.class which are in com/company/utils folder. </p>
  
  <p>if i have base-dir as com/company/utils when i run the task the jar does not have the package folders in like com/company/utils is not created inside the jar file but if i change my base-dir to build/classes then all the files are getting included.
  what do to fix this.</p>