javadoc task

View: New views
5 Messages — Rating Filter:   Alert me  

javadoc task

by Klas.Nyman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Parent Message unknown RE: javadoc task

by Klas.Nyman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... [mailto:Klas.Nyman@...]
Sent: den 2 maj 2005 16:15
To: user@...
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@...
For additional commands, e-mail: user-help@...


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


Re: javadoc task

by Stefan Bodewig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 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@...


Parent Message unknown RE: javadoc task

by Klas.Nyman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yepp!

Tanks for your quick reply.

:)


/Klas

 

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@...]
Sent: den 2 maj 2005 16:26
To: user@...
Subject: Re: javadoc task

On 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@...


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


Re: javadoc task

by Mike Tardif :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

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

Klas.Nyman wrote:
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