You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Igor Fedulov <if...@outlook.net> on 2001/12/19 23:27:21 UTC

please help, cant build javadocs....

Hi guys:

I'm new to the Ant and I can't imagine how I lived without it before :).

Anyhow I created all my build targets just fine, the only problem I'm having
is the javadocs. I think I know where the problem is but I can't solve it (at
least from where I'm sitting). Well first things first:
1. Eviroment: Win2K, Forte4J 3.0, Sun 1.3.1 jdk
2. Problem:
build/build.xml [262] Javadoc failed: java.io.IOException: CreateProcess:
javadoc -bottom "Copyright © XXXX. All Rights Reserved." -d C:\data\work\projects\cms-jsp\docs\api -doctitle "CMS TagLib
1.5-dev API" -private -use -windowtitle "CMS TagLib 1.5-dev API" -verbose
-classpath
C:\data\work\projects\cms-jsp\build\lib\oltjcommon-1.0.jar;C:\data\work\projects\cms-jsp\build\lib\classes12.zip;C:\data\work\projects\cms-jsp\build\lib\mm.mysql-2.0.8-bin.jar
-sourcepath C:\data\work\projects\cms-jsp\bin\src -version -author
com.olt.cms.core com.olt.cms.core.db com.olt.cms.taglib com.olt.cms.util
error=2
--- Nested Exception ---
java.io.IOException: CreateProcess: javadoc -bottom "Copyright © XXXX. All Rights Reserved." -d
C:\data\work\projects\cms-jsp\docs\api -doctitle "CMS TagLib 1.5-dev API"
-private -use -windowtitle "CMS TagLib 1.5-dev API" -verbose -classpath
C:\data\work\projects\cms-jsp\build\lib\oltjcommon-1.0.jar;C:\data\work\projects\cms-jsp\build\lib\classes12.zip;C:\data\work\projects\cms-jsp\build\lib\mm.mysql-2.0.8-bin.jar
-sourcepath C:\data\work\projects\cms-jsp\bin\src -version -author
com.olt.cms.core com.olt.cms.core.db com.olt.cms.taglib com.olt.cms.util
error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:551)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:509)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
        at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:763)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:263)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)

I think the problem is that due to the fact that I'm running on Windows I
have to enclose the classpath into &quot; characters. I tried from
command prompt with enclosed classpath and it worked, but I have no idea
how do I do that from within the ant target. Here
is how my target looks like:

    <target depends="prepare" name="javadocs">
        <mkdir dir="${javadoc.destdir}"/>
        <javadoc author="true" bottom="Copyright © XXXX. All Rights Reserved." destdir="${javadoc.destdir}"
doctitle="${Name} ${version} API" packagenames="com.olt.cms.*"
private="true" sourcepath="${build.src}" use="true" version="true"
windowtitle="${Name} ${version} API" verbose="true">
            <classpath refid="classpath"/>
        </javadoc>
    </target>

Any help would be really appreciated!

-- 
Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : ifedulov@outlook.net
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: please help, cant build javadocs....

Posted by Igor Fedulov <if...@outlook.net>.
Now it's totally bizzare. I came home where I have Netbeans installed
(3.3) and javadocs target executed noproblems whatsoever.... Maybe it's
Forte4J problem, not mine...

Anyhow thanks everybody for your help!

-- 
Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : ifedulov@outlook.net
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: please help, cant build javadocs....

Posted by Ylan Segal <yl...@digiworks.tv>.
> I think the problem is that due to the fact that I'm running on Windows I
> have to enclose the classpath into &quot; characters. I tried from
> command prompt with enclosed classpath and it worked, but I have no idea
> how do I do that from within the ant target. Here
> is how my target looks like:
>
>     <target depends="prepare" name="javadocs">
>         <mkdir dir="${javadoc.destdir}"/>
>         <javadoc author="true" bottom="Copyright © XXXX. All
> Rights Reserved." destdir="${javadoc.destdir}"
> doctitle="${Name} ${version} API" packagenames="com.olt.cms.*"
> private="true" sourcepath="${build.src}" use="true" version="true"
> windowtitle="${Name} ${version} API" verbose="true">
>             <classpath refid="classpath"/>
>         </javadoc>
>     </target>
>
How are you defining the classpath? you are stating that it is a path-like
structure with
id="classpath". Is this how it is defined in your buildfile? My hunch is
that you are trying to use the windows environment variable CLASSPATH. What
I do in my build file is:
[snip .. relevant prortions attached]
....
<!-- top of the build filem, outside any target -->
<path id="project.classpath">
	<pathelement path="${classpath}"/>
	<fileset dir="${lib.home}">
		<include name="**/*.jar"/>
	</fileset>
</path>

	<javadoc
		packagenames="${packages}"
		sourcepath="${src.home}"
                destdir="${javadoc.home}"
		author="true"
		version="true"
		use="true"
		splitindex="true"
		stylesheetfile="${src.home}/digiworks.css">
		<header><![CDATA[
		<a href="http://www.digiworks.tv" target="_top">Digiworks&copy;</a>
		]]>
		</header>
		<footer><![CDATA[
		<a href="http://www.digiworks.tv" target="_top">Digiworks&copy;</a>
		]]>
		</footer>
		<classpath refid="project.classpath" />
	</javadoc>
...
[snip]

The reference to ${classpath} is, to my understaning, a reference to the
environment CLASSPATH variable.
Hope this gets you going.

Ylan Segal.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>