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

Problem in Core Task "exec" attribute "dir"





------- Additional Comments From [EMAIL PROTECTED]  2002-07-16 15:16 -------
I have stumbled upon the same problem.  First, I looked in this bug database and
found the following previous similar reports:

Bug 370 - poor description of the problem
Bug 420 - marked invalid because of a problem with Runtime.exec()

Allow me to add my own description of the problem:

I'm using Ant to call autotools (the stuff that lets you type "configure" then
"make" when you install a UNIX program) to build the (gasp) native portion of my
program.  I create a directory ${bin} in which I wish to compile.  Here are the
relevant statements from my build.xml:

   <property name="plaf" value="${os.name}/${os.arch}/${os.version}"/>
   <property name="bin"  value="${plaf}/bin"/>
   <mkdir dir="${bin}"/>
   <exec executable="../../../../configure" dir="${bin}"/>

When I perform the command by hand from the bin directory, it works fine.  When
Ant tries, it says this:

.../native/build.xml:76: Execute failed: java.io.IOException:
../../../../configure: not found

In this case, I'm running SunOs 5.6 with Sun JSDK 1.3.1_01.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to