Link to home
Start Free TrialLog in
Avatar of silkyguy21
silkyguy21Flag for India

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.hibernate.project" author="true"
                             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>

Open in new window

Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Try running


ant -d javadoc

to see what's happening
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of silkyguy21

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.