Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 46367 invoked by uid 500); 5 Jul 2003 16:11:37 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 37218 invoked from network); 5 Jul 2003 03:46:17 -0000 Date: Fri, 04 Jul 2003 20:47:42 -0700 From: Ed Vander Hoek Subject: Exec and exit code To: user@ant.apache.org Message-id: <3F064A5E.4050503@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm having some odd problems with the exec task. I'm using it to execute the following very simple test program: main() { printf("Executing..."); return 1; } with the following build.xml file: In theory the build should fail since the test app is returning an error code. Yet, most of the time the build succeeds although about 10% of the time it fails and prints "build.xml:6: exec returned: 1" This is under SuSE 8.1, Ant 1.6alpha, JDK 1.4.1_02-b06. Doing approximately the same thing under Windows seems to work fine. Any ideas on what could be going on here? thanks in advance, Ed Vander Hoek --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org