DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25455>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25455 process fork fails if <junit> "dir" attribute points to non-existent location Summary: process fork fails if <junit> "dir" attribute points to non-existent location Product: Ant Version: 1.6Beta Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The <junit> task should check the existence of the location specified in the "dir" attribute before forking. If the "dir" location doesn't exist, it should report a useful exception message saying the location specified in "dir" does not exist. If the "dir" location points to a non-existent directory, currently you get this unhelpful message and stack trace (this is with ant - verbose), which doesn't indicate the problem. Process forks can fail for other reasons, such as the classpath or command line length being exceeded. This would be an easy, preventable loss of time debugging this problem when it happens. I'm not sure how often it happens, but we had it happen a few times in the past couple months because of a script or property change here or there, and only today realized what the real problem usually boils down to -- the location in the "dir" attribute didn't exist.: C:\PLATFORM_REPO\LATEST\wesdk\projects\build-scripts\targets.xml:136: Process fork failed. at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked (JUnitTask.java:816) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute (JUnitTask.java:665) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute (JUnitTask.java:636) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) --- Nested Exception --- java.io.IOException: CreateProcess: C:\jdk1.3.1_08\jre\bin\java.exe -classpath [CLASSPATH removed for brevity] at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:61) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:546) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec (Execute.java:836) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:479) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:490) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked (JUnitTask.java:814) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute (JUnitTask.java:665) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute (JUnitTask.java:636) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
