ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill.J.Fell...@mail.sprint.com
Subject RE: javadoc ....
Date Fri, 01 Jun 2001 21:50:45 GMT
You're close, very close.  In setting your classpath, you also need to 
include the locations of your jars 
tools.jar, servlet.jar, parser.jar (or jaxp.jar or something like that 
- your xml parser)

A longer write up is in progress but that's the quick and dirty form of 
it.
/bill

-----Original Message-----
From: pinarbici [mailto:pinarbici@hotmail.com]
Sent: Friday, June 01, 2001 4:47 PM
To: ant-user
Cc: pinarbici
Subject: RE: javadoc ....




After setting my 
classpath="CLASSPATH="D:\ap20\java\org\apache\struts\form\;d:\ap20\websr
c\WEB-INF\lib\struts.jar"
I ran "ant javadoc" which is as below


<!-- Javadoc target -->
   <target name="javadoc" depends="compile" >

    <property name="root"  value="org.apache.struts" />
    <property name="src"   value="d:\ap20\java" />

       <javadoc sourcepath="${src}"
         destdir="${javadoc.home}"
         classpath="D:\ap20\websrc\WEB-INF\lib\struts.jar"
         packagenames="${root}.*"
         author="true"
         version="true"
         use="true"
         windowtitle="${app.name} ${version} API"
         doctitle="${app.name}" />
         </target>

and i got the followin message;

D:\ap20>ant javadoc
Buildfile: build.xml

prepare:

compile:

javadoc:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.apache.struts.form...
  [javadoc] Constructing Javadoc information...
  [javadoc] D:\ap20\java\org\apache\struts\form\ValidateForm.java:13: 
Package javax.servle
t.http not found in import.
  [javadoc] import javax.servlet.http.*;
  [javadoc]        ^
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServlet
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.ServletRequest
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServletRequest
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.ServletResponse
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.ServletException
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServletResponse
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.RequestDispatcher - ignorin
g!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.ServletException - ignoring
!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.http.HttpServletRequest - i
gnoring!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.http.HttpSession - ignoring
!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.http.HttpServletResponse -
ignoring!
  [javadoc] javadoc: warning - Cannot find class javax.sql.DataSource
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.HandlerBase
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServlet
  [javadoc] javadoc: warning - Cannot find class 
org.xml.sax.SAXException
  [javadoc] javadoc: warning - Cannot find class 
org.xml.sax.SAXParseException
  [javadoc] javadoc: warning - Cannot find class 
javax.xml.parsers.SAXParser
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.InputSource
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.Locator
  [javadoc] javadoc: warning - Cannot find class 
org.xml.sax.AttributeList
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.HandlerBase
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
  [javadoc] Generating 
D:\Tomcat\jakarta-tomcat-3.2.2b3\webapps\struts\javadoc\stylesheet.
css...
  [javadoc] 21 warnings

BUILD SUCCESSFUL

Total time: 8 seconds

I have bunch of warnings again but they are different now. While it 
couldn't 
find the classes or packages i used in the source files before now it 
can 
not find some classes which are different then before
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message