Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 50799 invoked from network); 20 Oct 2004 22:28:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Oct 2004 22:28:27 -0000 Received: (qmail 58924 invoked by uid 500); 20 Oct 2004 22:27:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 58728 invoked by uid 500); 20 Oct 2004 22:27:24 -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 58701 invoked by uid 99); 20 Oct 2004 22:27:23 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [32.97.182.101] (HELO e1.ny.us.ibm.com) (32.97.182.101) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 20 Oct 2004 15:27:23 -0700 Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com [9.56.224.150]) by e1.ny.us.ibm.com (8.12.10/NS PXFA) with ESMTP id i9KMRKD7248114 for ; Wed, 20 Oct 2004 18:27:20 -0400 Received: from d01mc390.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by northrelay02.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i9KMSVmD106322 for ; Wed, 20 Oct 2004 18:28:31 -0400 To: "Ant Users List" From: Nick Boldt Subject: re: proposed addendum to the Ant Exec Task Manual entry Date: Wed, 20 Oct 2004 18:26:59 -0400 Message-ID: X-MIMETrack: Serialize by Router on D01MC390/01/M/IBM(Release 6.51HF339 | June 21, 2004) at 10/20/2004 18:27:09 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On http://ant.apache.org/manual/CoreTasks/exec.html there is listed a Red Hat S/390 Users fix for when you see: [exec] Warning: UNIXProcess.forkAndExec native error: Exec format error [exec] Result: 255 My observation is that this fix applies to not just S/390, but to the wider audience of those using the IBM JDK (and not the Sun JDK, which doesn't care if your shell scripts have an interpreter speficied on line 1). I was running a build using the Sun JDK 1.4.2_03 on debian, and switched to IBM JDK 1.4.2sr1 and encountered this - ahem - forking error. The suggested fix - namely to add a #!/bin/bash or #!/bin/sh interpreter line to the head of the .sh script being exec'd - worked to solve the problem and the build continued as it had been before w/ the less restrictive / more forgiving Sun JDK. Since this fix, as stated in your manual, is not immediately obvious as being a solution (for those who can't make the leap that S/390 = IBM JDK), I just thought I'd point out that you can - if you'd like - add this extra bit of help to your manual. Thanks, Nick Boldt :: Programmer-Polyglot Eclipse EMF/SDO/XSD Websphere Studio Development, Toronto Lab 8200 Warden Ave., Markham, Ontario, L6G 1C7. http://eclipse.org/emf && http://eclipse.org/xsd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org