|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
javadoc taskHi!
I have a problem running the javadoc task; it stops with C:\UTV\java\FundServicesDocs\build.xml:78: Javadoc failed: java.io.IOException: CreateProcess: C:\jdk1.5.0_02\bin\javadoc.exe -d ...... at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at java.lang.Runtime.exec(Runtime.java:591) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec ute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1948) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) the build suddenly broke when the project grew and some *.java files were added. it is a small numer of java files (<200) but quite many jars in the classpath. I have tried to increse heap with set ANT_OPTS=-Xms32m -Xmx512m My feeling is that when ant tries to spawn the javadoc proc somthing happens with the arguments, mybe a too long /to many arguments fault in some way. and I'm using my own doclet and below is a snip from my build file <target name="javadoc" description="Generate API docs" depends="clean" > <javadoc destdir="build"> <doclet name="com.tefs.wsdoclet.WsDoclet" path="${fbl.devpath}/WSDoclet/classes" /> <fileset dir="${fbl.devpath}/FundServices/src"> <include name="**/*.java" /> </fileset> <fileset dir="${fbl.devpath}/FundBusiness/src"> <include name="**/*.java" /> </fileset> <classpath refid="compile.classpath" /> </javadoc> </target> Has anybody some clues? /Klas --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
|
|
|
Re: javadoc taskOn Mon, 2 May 2005, Klas Nyman <Klas.Nyman@...> wrote:
> the build suddenly broke when the project grew and some *.java files > were added. it is a small numer of java files (<200) but quite many > jars in the classpath. Probably your command line has grown too long for your OS. Try whether setting the useexternalfile attribute of the task to true makes it work again. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
|
|
|
Re: javadoc taskHi
I suddenly ran into the very same error when my fileset dir attribute was set to a root path that was just a wee bit longer than before. As a result, the arguments passed to the javadoc process get truncated, and the error ensues. I was able to work around the problem by using the usexternalfile attribute of Ant's javadoc task, e.g., <javadoc useexternalfile="true" destdir="build"> ... <fileset dir="${fbl.devpath}/FundServices/src"> <include name="**/*.java" /> </fileset> ... </javadoc> I suspect this attribute was added to precisely circumvent this problem. Cheers
|
| Free embeddable forum powered by Nabble | Forum Help |