title: cannot create the javaDoc
body: <p>Hi I have my main method in a class name Assignment1 and the package name is defined as</p>
  
  <pre><code>package assignment1;
  </code></pre>
  
  <p>I'm trying to make the javaDoc from the ant build. my build file has </p>
  
  <pre><code>&lt;target name="javadoc" depends="init" description="creates javadoc"&gt;
    &lt;javadoc sourcepath="."  destdir="DOCS"/&gt;
    &lt;/target&gt;
  </code></pre>
  
  <p>and when I run it I get the error Assignment1 contains source files in the default package, you must specify them as source files not packages.
  build and java files are in the same folder please tell me what I'm doing wrong here. Thanx in advance</p>