ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36347] - antRun doesnt work properly on Solaris, so exec with vmlauncher=false is broken
Date Sat, 15 Jul 2006 20:55:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36347>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36347


stevel@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|<exec> task's dir attribute |antRun doesnt work properly
                   |not honored if current      |on Solaris, so exec with
                   |directory is the same as the|vmlauncher=false is broken
                   |dir attribute.              |




------- Additional Comments From stevel@apache.org  2006-07-15 20:55 -------
OK. that narrows the problem down a lot. the v1.2 was the first clue. From 1.2
to 1.3 ant changed how it execs, because you finally got to be able to specify
the current dir in exec(). For 1.2, if you specify a new directory, ant runs a
shell script, but you only get that script run in java1.3+ if you set
vmlauncher=false.

not much of one, stripping off the apache copyright it is 8 lines.
#! /bin/sh
# Args: DIR command
cd "$1"
CMD="$2"
shift
shift
exec "$CMD" "$@"

Try testing it on the command line
antRun / ls
and 
antRun /etc ls passwd
to see that it is working.


Renamed bug for more specificness. There's and no way in Execute.java to allow
callers to select a different helper script (like antRun.pl).

Thinking of this, there is one workaround. Move $ANT_HOME/bin/antRun and replace
it with antRun.pl. You may need to patch the #! path at the top of that file to
point to your Perl system, and make the script exectable.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message