Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3618
  • Last Modified:

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

0
silkyguy21
Asked:
silkyguy21
1 Solution
 
CEHJCommented:
Try running


ant -d javadoc

to see what's happening
0
 
objectsCommented:
check what ${src.home} is set to and make sure there are some classes there

> packagenames="com.hibernate.project"

specifically this package.
is that the only package you wanted to javadoc?

0
 
silkyguy21Author Commented:
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now