silkyguy21
asked on
Getting ant error when generating javadoc: No source files and no packages have been specified.
Hi Experts,
i am trying to generate javadocs using ant tag <javadoc> Each time i run my script i am getting Error: No source files and no packages have been specified.
Here is the snippet from my script:
<target name="javadoc" description="Generate API docs for the DocCheck source">
<mkdir dir = "${dist.home}/docs/api" />
<javadoc defaultexcludes="yes" use="yes" header="DocCheck 1.2 Beta 2" doctitle="DocCheck - Comment Checking Doclet"
nodeprecatedlist="yes" sourcepath="${src.home}" destdir="${dist.home}/docs /api" packagenames="com.hibernat e.project" author="true"
version="true"
windowtitle="Hibernate web project">
<classpath refid="compile.classpath"/ >
</javadoc>
</target>
Please suggest.
i am trying to generate javadocs using ant tag <javadoc> Each time i run my script i am getting Error: No source files and no packages have been specified.
Here is the snippet from my script:
<target name="javadoc" description="Generate API docs for the DocCheck source">
<mkdir dir = "${dist.home}/docs/api" />
<javadoc defaultexcludes="yes" use="yes" header="DocCheck 1.2 Beta 2" doctitle="DocCheck - Comment Checking Doclet"
nodeprecatedlist="yes" sourcepath="${src.home}" destdir="${dist.home}/docs
version="true"
windowtitle="Hibernate web project">
<classpath refid="compile.classpath"/
</javadoc>
</target>
Please suggest.
<target name="javadoc" description="Generate API docs for the DocCheck source">
<mkdir dir = "${dist.home}/docs/api" />
<javadoc defaultexcludes="yes" use="yes" header="DocCheck 1.2 Beta 2" doctitle="DocCheck - Comment Checking Doclet"
nodeprecatedlist="yes" sourcepath="${src.home}" destdir="${dist.home}/docs/api" packagenames="com.hibernate.project" author="true"
version="true"
windowtitle="Hibernate web project">
<classpath refid="compile.classpath"/>
</javadoc>
</target>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yeh... that's working.... i was just trying to see whether my command runs... i had not put any class there. I put the class there and it just run fine. Thanks for solution.
ant -d javadoc
to see what's happening