ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Wells" <swe...@graviton.com>
Subject RE: Ant bug / JavaDoc exception
Date Thu, 16 Aug 2001 16:43:23 GMT
To follow-up, I removed practically all lib's from my fileset and still
get an Ant JavaDoc exception -


C:\dev\graviton\gravitonbuild.xml:153: Javadoc failed:
java.io.IOException: CreateProcess: javadoc -d
C:\dev\graviton\build\docs\api -use -windowtitle "Graviton API"
-doctitle Graviton -bottom "Copyright ? 2001 Graviton Inc. All Rights
Reserved." -classpath
C:\dev\graviton;C:\dev\graviton\lib\apache\log4j\log4j.jar -sourcepath
C:\dev\graviton\src -version -author -linkoffline
http://java.sun.com/products/jdk/1.2/docs/api . -group "Graviton
Packages" com.graviton.* com.graviton.util error=2
--- Nested Exception ---
java.io.IOException: CreateProcess: javadoc -d
C:\dev\graviton\build\docs\api -use -windowtitle "Graviton API"
-doctitle Graviton -bottom "Copyright ? 2001 Graviton Inc. All Rights
Reserved." -classpath
C:\dev\graviton;C:\dev\graviton\lib\apache\log4j\log4j.jar -sourcepath
C:\dev\graviton\src -version -author -linkoffline
http://java.sun.com/products/jdk/1.2/docs/api . -group "Graviton
Packages" com.graviton.* com.graviton.util error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Unknown Source)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.InflatableMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)
        at
net.sourceforge.cruisecontrol.MasterBuild.execute(MasterBuild.java:351)
        at
net.sourceforge.cruisecontrol.MasterBuild.main(MasterBuild.java:137)



-----Original Message-----
From: Steve Wells 
Sent: Thursday, August 16, 2001 9:38 AM
To: ant-user@jakarta.apache.org
Subject: Ant bug / JavaDoc exception


I'm encountering the following exception when trying to have Ant
generate javaDocs under CruiseControl.  The same ant build script works
fine when I'm running from the command line.  Note the long classpath &
the last entry appears to be clipped (C:\dev\gravitonD) though I have
nothing like that (C:\dev\gravitonD) in my path.  When I add exclude
files to the classpath it shrinks the line shown but still has an
abbreviated chunk at the end (with the trailing "D").   Is this a bug
with Ant, buffer sizing problem or command string length limitation,
maybe?

-- Steve


C:\dev\graviton\gravitonbuild.xml:149: Javadoc failed:
java.io.IOException: CreateProcess: javadoc -d
C:\dev\graviton\build\docs\api -use -windowtitle "Graviton API"
-doctitle Graviton -bottom "Copyright ? 2001 Graviton Inc. All Rights
Reserved." -classpath
C:\dev\graviton;C:\dev\graviton\lib\apache\ant\ant.jar;C:\dev\graviton\l
ib\apache\ant\optional.jar;C:\dev\graviton\lib\apache\ant\sablecc\anttas
k.jar;C:\dev\graviton\lib\apache\ant\sablecc\sablecc-anttask.jar;C:\dev\
graviton\lib\apache\log4j\log4j.jar;C:\dev\graviton\lib\apache\oro.jar;C
:\dev\graviton\lib\apache\soap2_2.jar;C:\dev\graviton\lib\apache\struts.
jar;C:\dev\graviton\lib\apache\xalan\crimson.jar;C:\dev\graviton\lib\apa
che\xalan\xalan.jar;C:\dev\graviton\lib\apache\xerces1_3_1.jar;C:\dev\gr
aviton\lib\graviton.jar;C:\dev\graviton\lib\java\commapi\comm.jar;C:\dev
\graviton\lib\java\j2ee\j2ee.jar;C:\dev\graviton\lib\java\javamail\imap.
jar;C:\dev\graviton\lib\java\javamail\mail.jar;C:\dev\graviton\lib\java\
javamail\mailapi.jar;C:\dev\graviton\lib\java\javamail\pop3.jar;C:\dev\g
raviton\lib\java\javamail\smtp.jar;C:\dev\gravitonD
--- Nested Exception ---
java.io.IOException: CreateProcess: javadoc -d
C:\dev\graviton\build\docs\api -use -windowtitle "Graviton API"
-doctitle Graviton -bottom "Copyright ? 2001 Graviton Inc. All Rights
Reserved." -classpath
C:\dev\graviton;C:\dev\graviton\lib\apache\ant\ant.jar;C:\dev\graviton\l
ib\apache\ant\optional.jar;C:\dev\graviton\lib\apache\ant\sablecc\anttas
k.jar;C:\dev\graviton\lib\apache\ant\sablecc\sablecc-anttask.jar;C:\dev\
graviton\lib\apache\log4j\log4j.jar;C:\dev\graviton\lib\apache\oro.jar;C
:\dev\graviton\lib\apache\soap2_2.jar;C:\dev\graviton\lib\apache\struts.
jar;C:\dev\graviton\lib\apache\xalan\crimson.jar;C:\dev\graviton\lib\apa
che\xalan\xalan.jar;C:\dev\graviton\lib\apache\xerces1_3_1.jar;C:\dev\gr
aviton\lib\graviton.jar;C:\dev\graviton\lib\java\commapi\comm.jar;C:\dev
\graviton\lib\java\j2ee\j2ee.jar;C:\dev\graviton\lib\java\javamail\imap.
jar;C:\dev\graviton\lib\java\javamail\mail.jar;C:\dev\graviton\lib\java\
javamail\mailapi.jar;C:\dev\graviton\lib\java\javamail\pop3.jar;C:\dev\g
raviton\lib\java\javamail\smtp.jar;C:\dev\gravitonD
       at java.lang.Win32Process.create(Native Method)
       at java.lang.Win32Process.<init>(Unknown Source)
       at java.lang.Runtime.execInternal(Native Method)
       at java.lang.Runtime.exec(Unknown Source)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.InflatableMethodAccessorImpl.invoke(Unknown
Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       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.Main.runBuild(Main.java:421)
       at org.apache.tools.ant.Main.main(Main.java:149)
       at
net.sourceforge.cruisecontrol.MasterBuild.execute(MasterBuild.java:351)
       at
net.sourceforge.cruisecontrol.MasterBuild.main(MasterBuild.java:137)

_______________________________________________
Cruisecontrol-devel mailing list
Cruisecontrol-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/cruisecontrol-devel


Mime
View raw message