http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2647
*** shadow/2647 Mon Jul 16 21:58:56 2001 --- shadow/2647.tmp.18971 Mon Jul 16 21:58:57 2001 *************** *** 0 **** --- 1,65 ---- + +============================================================================+ + | javadoc task fails in "exec" when javadoc is a symbolic link | + +----------------------------------------------------------------------------+ + | Bug #: 2647 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Linux | + | Priority: Other Component: Core tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I was getting the error log included below when using the javadoc task. I + looked at the ant sources and traced the problem to (I believe) a problem + with "exec"ing symlinks. In my (default) JDK 1.3.1 setup, the javadoc command + is actually a symlink to the .java_wrapper shell script. When I modified my + path to include a non-symlink javadoc command, all seemed to work fine. Perhaps + a check for symlinks could be put into ant? + + Incidentally, I was compiling Phex (http://sourceforge.net/projects/phex/). I + can mail you the build.xml file or other info if needed. + + Regards, + + -Chaw + + Error log... + + Hedwig:~/res/phexi>ant doc + Buildfile: build.xml + + init: + + doc: + [javadoc] Generating Javadoc + [javadoc] Javadoc execution + + BUILD FAILED + + /home/chaw/res/phexi/build.xml:39: Javadoc failed: java.io.IOException: javadoc: + cannot execute + --- Nested Exception --- + java.io.IOException: javadoc: cannot execute + at java.lang.UNIXProcess.forkAndExec(Native Method) + at java.lang.UNIXProcess.<init>(UNIXProcess.java:139) + 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.Main.runBuild(Main.java:421) + at org.apache.tools.ant.Main.main(Main.java:149) + + Total time: 1 second + Hedwig:~/res/phexi>
