ANT + JavaDoc

很长时间没有碰Ant,一个小小问题竟然又让我搞上好长一段时间,真是廉颇老矣?

Problem:

build>ant javadoc
Buildfile: build.xml

javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution

BUILD FAILED
build\build.xml:143: Javadoc failed: java.io.IOException: CreateProcess: C:\j2sdk142\bin\javadoc.exe -d C
:\mywork\hcms\build\java\docs -classpath C:\mywork\hcms\build\java\classes;C:\mywork\hcms\build\java\jars\hcmsold.jar;C:
\OraBPELPM_1\integration\orabpel\lib\ant-launcher_1.6.2.jar;C:\OraBPELPM_1\integration\orabpel\lib\ant_1.6.2.jar;C:\OraB
PELPM_1\integration\orabpel\lib\aqapi.jar;C:\OraBPELPM_1\integration\orabpel\lib\bpm-infra.jar;C:\OraBPELPM_1\integratio
n\orabpel\lib\commons-fileupload-1.0.jar;C:\OraBPELPM_1\integration\orabpel\lib\connector15.jar;C:\OraBPELPM_1\integrati
on\orabpel\lib\dms.jar;C:\OraBPELPM_1\integration\orabpel\lib\j2ee_1.3.01.jar;C:\OraBPELPM_1\integration\orabpel\lib\oli
te40.jar;C:\OraBPELPM_1\integration\orabpel\lib\orabpel-ant.jar;C:\OraBPELPM_1\integration\orabpel\lib\orabpel-boot.jar;
C:\OraBPELPM_1\integration\orabpel\lib\orabpel-common.jar;C:\OraBPELPM_1\integration\orabpel\lib\orabpel-thirdparty.jar;
C:\OraBPELPM_1\integration\orabpel\lib\orabpel.jar;C:\OraBPELPM_1\integration\orabpel\lib\oracle_http_client.jar;C:\OraB
PELPM_1\integrati?

Cause: command line is getting to long

Problem Resolved: add attribute useexternalfile="yes" in the javadoc tag.

Good Luck.

你可能感兴趣的:(java,C++,c,ant,C#)