ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
Subject BugRat Report #672 has been filed.
Date Thu, 28 Dec 2000 19:06:51 GMT
Bug report #672 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/672>

REPORT #672 Details.

Project: Ant
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: low
Severity: serious
Confidence: public
Environment: 
   Release: 1.2
   JVM Release: jdk1.3
   Operating System: Linux
   OS Release: Red Hat Linux 6.1
   Platform: x86

Synopsis: 
$PATH handling buglet

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.

Mime
View raw message