Ant Javadoc failure when building help.  
Author Message
Krusty276





PostPosted: 2004-4-8 3:36:00 Top

java-programmer, Ant Javadoc failure when building help. I'm getting this error when trying to compile javadoc in ant from my
buildxml:
Any ideas?

C:\umg\java\web\dbtest\WEB-INF\src\build.xml:64: Javadoc failed:
java.io.IOException: CreateProcess: javadoc.exe -d
C:\umg\java\web\dbtest\WEB-INF\doc\api -classpath
C:\umg\java\web\lib\servlet-api.jar;C:\umg\java\web\lib\struts.jar;C:\umg\ja
va\lib\umg-db.jar -sourcepath
C:\umg\java\web\dbtest\WEB-INF\src -version -author
java.com.umusic.ecrm.web.test error=2


what's error=2????

this is in my build.xml:
<!-- Build Javadoc documentation -->
<target name="javadoc"
description="Generate JavaDoc API docs">
<delete dir="./doc"/>
<mkdir dir="./doc"/>
<javadoc sourcepath="./src"
destdir="./doc/api"
packagenames="*"
author="true"
private="true"
useexternalfile="yes"
version="true"
windowtitle="${project.title} API Documentation"
doctitle="<h1>${project.title} Documentation (Version
${project.version})</h1>"
bottom="Copyright © 2003">
<classpath refid="compile.classpath"/>
</javadoc>
</target>



 
Raymond DeCampo





PostPosted: 2004-4-9 5:37:00 Top

java-programmer >> Ant Javadoc failure when building help. Krusty276 wrote:
> I'm getting this error when trying to compile javadoc in ant from my
> buildxml:
> Any ideas?
>
> C:\umg\java\web\dbtest\WEB-INF\src\build.xml:64: Javadoc failed:
> java.io.IOException: CreateProcess: javadoc.exe -d
> C:\umg\java\web\dbtest\WEB-INF\doc\api -classpath
> C:\umg\java\web\lib\servlet-api.jar;C:\umg\java\web\lib\struts.jar;C:\umg\ja
> va\lib\umg-db.jar -sourcepath
> C:\umg\java\web\dbtest\WEB-INF\src -version -author
> java.com.umusic.ecrm.web.test error=2
>
>
> what's error=2????
>

This is a Windows error code. Translated to English, this means that
Windows failed to execute javadoc.exe, probably because it could not
locate it. Make sure that it is in your PATH.

Ray