Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to invoke javadoc tag within Ant problem.

Status
Not open for further replies.

untzkhan

Programmer
Dec 19, 2004
2
US
Hello there,

In my build.xml file, this is the code snippet for my <javadoc> target:

<target name = "javadoc" description = "Generates JavaDoc">
<echo message="Generating API Javadocs...."/>
<mkdir dir = "${docs.dir}/javadoc" />
<javadoc packagenames="com.prototype.util.*" destdir="${docs.dir}/javadoc" author="true"
version="false" use="true" windowtitle="My Prototype API" doctitle="Prototype" bottom="Copyright © 2004 Unnsse Khan. All Rights Reserved.">
<classpath>
<!-- Include all JAR files in my local library --> <fileset dir="${lib.dir}"> <include name="*.jar"/> </fileset> <pathelement path="${build.dir}"/>
</classpath>
<sourcepath> <pathelement path="${src.dir}"/
</sourcepath>
</javadoc>
</target>

-----------------------------------------------------------

The property variables (such as ${src.dir}) are specified in a build.properties file that looks like this:

code:
-----------------------------------------------------------
# build.properties
# Configuration file which works in conjunction with build.xml
# Generic build properties
build.dir=./classes
deploy.dir=./deploy
docs.dir=./docs
src.dir=./src
lib.dir=./lib
xml.dir=./xml
-----------------------------------------------------------
This is the output when I run it from the command line:

code:
-----------------------------------------------------------
F:\DevProjects\Java\J2EE Projects\Prototype>ant

javadocBuildfile: build.xml javadoc:
[echo] Generating API Javadocs....

BUILD FAILED

F:\DevProjects\Java\J2EE Projects\Prototype\build.xml:85: No source files and no packages have been specified.
Total time: 0 seconds

F:\DevProjects\Java\J2EEProjects\Prototype>

-----------------------------------------------------------

I didn't think it was so hard just to generate javadoc using Ant, apparently there something that I am doing wrong....

I would appreciate any suggestions....

Thanks again and Happy Holidays,

Unnsse M. Khan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top