ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niranjan Deshpande" <>
Subject need help in ant's javadoc task (from maven)
Date Fri, 06 Jun 2008 12:54:23 GMT
I am trying to generate a .properties file using javadocs in a java source
file, and i am using ant's <javadoc> task to do this.

but i am getting this error when i run the antrun plugin

  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] javadoc: Cannot find doclet class
  [javadoc] 1 error

Please help. Also can anyone tell me what the <path> and <pathelement>
elements are for? How are the paths relative to?

My ant build file is:

<project name="generate.appcodes" basedir=".." default="all">

 <path id="tools.classpath">
  <pathelement path="build/lib/tools.jar" />
  <pathelement path="lib/xerces.jar" />
  <pathelement path="WebContent/WEB-INF/lib/log4j-1.2.9.jar" />

 <target name="all" depends="generate.appcodes"/>

 <target name="generate.appcodes">

  <delete file="src/main/resources/" />


   <doclet name=""
    <param name="-outputfile"
value="../src/main/resources/" />
    <param name="-sourcepath" value="src/main/resources" />
    <param name="-command" value="properties" />


  <mkdir dir="target/WEB-INF/classes/resources" />
  <copy file="src/main/resources/"
     todir="target/WEB-INF/classes/resources" />



Niranjan Deshpande

"Shut yourself from the world and create the reality you want"

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