ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Klas.Ny...@tietoenator.com>
Subject RE: javadoc task
Date Mon, 02 May 2005 14:22:27 GMT
I'm using java 1.5.0_02 and ant 1.6.3 (also broken in 1.6.2)

/Klas  

-----Original Message-----
From: Klas.Nyman@tietoenator.com [mailto:Klas.Nyman@tietoenator.com] 
Sent: den 2 maj 2005 16:15
To: user@ant.apache.org
Subject: javadoc task

Hi!

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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message