http://nagoya.apache.org/bugzilla/show_bug.cgi?id=380
*** shadow/380 Thu Feb 1 01:50:08 2001
--- shadow/380.tmp.8683 Thu Feb 1 01:50:08 2001
***************
*** 0 ****
--- 1,56 ----
+ +============================================================================+
+ | $PATH handling buglet BugRat Report#672 |
+ +----------------------------------------------------------------------------+
+ | Bug #: 380 Product: Ant |
+ | Status: UNCONFIRMED Version: 1.2 |
+ | Resolution: Platform: All |
+ | Severity: Normal OS/Version: All |
+ | Priority: High Component: Main |
+ +----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED] |
+ | Reported By: [EMAIL PROTECTED] |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ When building a target that needs to execute javadoc (for instance, one
including the javadoc element), and there is a directory named 'javadoc' in a
directory in your $PATH before the 'javadoc' executable, the following error
occurs:
+
+
+ Buildfile: ./build.xml
+
+ init:
+ ##### ${company} ${product} ${version} ####
+
+ javadoc:
+ [javadoc] Generating Javadoc
+ [javadoc] Javadoc execution
+
+ BUILD FAILED
+
+ /home/broz/foo/./build.xml:40: Javadoc failed: java.io.IOException: javadoc:
canno\
+ t execute
+ java.io.IOException: javadoc: 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(Execut\
+ e.java:390)
+ at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
+ at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:728)
+ 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: 1 second
+
+ I argue that this is a bug, since the shells which I have tried (bash, csh)
do not exhibit this behavior (preferring the directory to a file later in the
$PATH). It might be worth checking UNIX standards.
+
+ Email me if you'd like the build files I used to test this; I'll probably
want to clean them up a bit.
+
+ This quite probably affects non-javadoc targets.