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=10289>. 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=10289 <Exec> task in a recursive build fail to find the executable. Summary: <Exec> task in a recursive build fail to find the executable. Product: Ant Version: 1.5Beta3 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The project is made of two build.xml files : (1) myroot/build.xml (2) myroot/examples/prj/build.xml (1) call (2) with the following line : <ant dir="examples/prj/" inheritAll="false"/> (2) try to execute a command with : <exec executable="./remove-doctype" failonerror="yes"> <arg value="*cut*"/> <arg value="*cut*"/> </exec> The remove-doctype command is in the directory of (2). ------------- Tests : If we execute (2) directly the exec task pass. If we execute (1) which call (2) the exec task fail. ------------- Workaround : To manage to call (1) we have to create a file called "remove-doctype" in the directory of (1) and chmod it executable. This file can be empty. (1) call (2) and (2) manage to exec the command "remove-doctype" in it's own directory (2). The empty file is only a placebo. ------------- My understanding : the exec task may check if the executable exists and is executable. This check is bugged. When we use the workaround the exec task check pass and the good executable is called (not the one checked). So it may be a bug in the check part of the exec task. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
