Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 70475 invoked from network); 23 Jan 2006 21:18:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 21:18:38 -0000 Received: (qmail 85047 invoked by uid 500); 23 Jan 2006 21:18:32 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 85001 invoked by uid 500); 23 Jan 2006 21:18:31 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 84990 invoked by uid 99); 23 Jan 2006 21:18:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 13:18:31 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.46.243.13] (HELO amsfep18-int.chello.nl) (213.46.243.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 13:18:31 -0800 Received: from [192.168.0.2] (really [213.89.102.190]) by amsfep18-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060123211809.YVFD29486.amsfep18-int.chello.nl@[192.168.0.2]> for ; Mon, 23 Jan 2006 22:18:09 +0100 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <5A282107-DC27-4515-B30D-63C112327951@chello.se> References: <5A282107-DC27-4515-B30D-63C112327951@chello.se> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Tommy Nordgren Subject: Re:[solved] Problem with exec task Date: Mon, 23 Jan 2006 22:18:08 +0100 To: "Ant Users List" X-Mailer: Apple Mail (2.746.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Jan 23, 2006, at 10:05 PM, Tommy Nordgren wrote: > I have a problem with the exec task. > I want to run an executable nested in one of my build directories. > I've tried: > > This executes the command, but the work directory is still the base > directory of my build. > I want it set to the directory containing the executable. > > When I tries: > > exec will just return an error code of 255. > > When I try: > > ant will throw an IOException ("File not Found") > > What do I need to do to successfully execute in a nested directory. > > The first option isn't viable, because I want generated files in > the same directory as the executable. adding the attribute resolveExecutable="yes" did solve my problem (On Mac OS X) ------------------------------------- This sig is dedicated to the advancement of Nuclear Power Tommy Nordgren tommy.nordgren@chello.se --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org