You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/09/25 02:24:30 UTC

DO NOT REPLY [Bug 23400] New: - dir value does not work for exec task on os x 10.2.6

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=23400>.
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=23400

dir value does not work for exec task on os x 10.2.6

           Summary: dir value does not work for exec task on os x 10.2.6
           Product: Ant
           Version: 1.5.4
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: tlamarca@hotmail.com


changing the working directory during the exec task using dir does not work on os x 10.2.6

this is both for vmlauncher="true" and vmlauncher="false"

in the case of vmlaunchar="false":

the executable is found, but the directory change is not respected by a shell script so 
that relative paths, etc. break.

if however, in the case of vmlauncher="false", ant is rebuilt to use the ScriptCommandLauncher (as 
with win9x but antRun instead of antRun.bat) instead of MacCommandLauncher, everything works 
ok / as expected

in the case of cmlauncher="true" setting dir to any value (even a legitimate one) results in

Java: UNIXProcess:forkAndExec: exec failed: No such file or directory

the exe command in question is:

<exec executable="./indexhelp.sh" vmlauncher="false" dir="${home}/src/semantica/help/se"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org