ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <Jesse.Gl...@netbeans.com>
Subject [PATCH] Execute & working dirs on 1.3
Date Mon, 12 Feb 2001 19:47:26 GMT
I noticed that when you use <exec> on JDK 1.3 and specify a working
directory, and that directory happens to be the same as the Ant VM's own
current working directory, the resultant process is messed up and has no
defined working directory (numerous errors in shell scripts and so on).

The working dir argument can be null if it would otherwise be unchanged
from the current working dir. In the current implementation it seems to
pass along that null as cwd (and Java happily lets you). Here is a patch
which ought to solve it. It is UNTESTED, hopefully the author of <exec>
can evaluate whether it makes sense.

-Jesse

-- 
Jesse Glick   <mailto:Jesse.Glick@netbeans.com>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR
Mime
View raw message