Just an update on this bug...
If I go to
$PROJECT/docs
and type 'ant docs' it finds the build.xml file inside $PROJECTS and builds
succesfully.
However if I type 'ant docs' inside the $PROJECT directory it blows up (see
the error message in the original e-mail)
I hope this helps in finding the problem.
Have fun
Phil
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 10:31 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [BUG] Forking doesn't work with <java>
(Not sure to which list it belongs, for that matter I don't even know if
this list is active)
Often I get the dreaded build fail error when I use fork="yes" in the <java>
task.
I never saw this behavior with the ant used inside Cocoon 1.8.2 however I
have now updated to ant 1.2.2
If I turn off forking, then the build process doesn't work proeperly. (I'm
using stylebook to generated my docs and it absolutely needs a forked java
otherwise it exits the java used by ant).
Can you tell me how to solve this problem ? (Is there a patch, or an
argument I need to provide ?)
PS The output is after my sig
Philippe Lavoie
Software Engineer tel: 819.778.0345 mobile:
819.664.9881
Cactus Communications Internet email: [EMAIL PROTECTED]
/home/plavoie/project/vbc/build.xml:185: java.io.IOException: java: cannot
execute
java.io.IOException: java: cannot execute
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:137)
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.jav
a:390)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:270)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:111)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
at org.apache.tools.ant.Target.execute(Target.java:142)
at org.apache.tools.ant.Project.runTarget(Project.java:818)
at org.apache.tools.ant.Project.executeTarget(Project.java:532)
at org.apache.tools.ant.Project.executeTargets(Project.java:506)
at org.apache.tools.ant.Main.runBuild(Main.java:420)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 2 seconds