ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Fedulov <ifedu...@outlook.net>
Subject please help, cant build javadocs....
Date Wed, 19 Dec 2001 22:27:21 GMT

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


Mime
View raw message