title: How to generate javadoc with ant, for an existing project?
body: <p>I want to make a Javadoc from an ant build file, but I don't see where it is.  In build.xml I have:</p>
  
  <pre><code>  &lt;description&gt;
      A sample build file for this project
    &lt;/description&gt;
  
    &lt;property name="source.dir" location="src"/&gt;
    &lt;property name="build.dir" location="bin"/&gt;
    &lt;property name="doc.dir" location="doc"/&gt;
    &lt;property name="main.class" value="proj1.Proj1"/&gt;
  
    &lt;target name="init" description="setup project directories"&gt;
      &lt;mkdir dir="${build.dir}"/&gt;
      &lt;mkdir dir="${doc.dir}"/&gt;
    &lt;/target&gt;
  
    &lt;target name="compile" depends="init" description="compile java sources"&gt;
      &lt;javac srcdir="${source.dir}" destdir="${build.dir}"/&gt;
    &lt;/target&gt;
  
    &lt;target name="run" description="run the project"&gt;
      &lt;java dir="${build.dir}" classname="${main.class}" fork="yes"&gt;
          &lt;arg line="${args}"/&gt;
      &lt;/java&gt;
    &lt;/target&gt;
  
    &lt;target name="clean" description="tidy up the workspace"&gt;
      &lt;delete dir="${build.dir}"/&gt;
      &lt;delete dir="${doc.dir}"/&gt;
      &lt;delete&gt;
        &lt;fileset defaultexcludes="no" dir="${source.dir}" includes="**/*~"/&gt;
      &lt;/delete&gt;
    &lt;/target&gt;
  
    &lt;!-- Generate javadocs for current project into ${doc.dir} --&gt;
    &lt;target name="doc" depends="init" description="generate documentation"&gt;
      &lt;javadoc sourcepath="${source.dir}" destdir="${doc.dir}"/&gt;
    &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Where is the Javadoc located? Is it a hidden file or something placed in that directory?</p>