Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C584717C98 for ; Tue, 14 Apr 2015 18:36:33 +0000 (UTC) Received: (qmail 12571 invoked by uid 500); 14 Apr 2015 18:36:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12531 invoked by uid 500); 14 Apr 2015 18:36: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 12471 invoked by uid 99); 14 Apr 2015 18:36:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 18:36:31 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of barlock@us.ibm.com designates 32.97.110.160 as permitted sender) Received: from [32.97.110.160] (HELO e39.co.us.ibm.com) (32.97.110.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 18:36:02 +0000 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Apr 2015 12:35:29 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 14 Apr 2015 12:35:05 -0600 Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 5C12519D803F for ; Tue, 14 Apr 2015 12:26:10 -0600 (MDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3EIYlOs34472186 for ; Tue, 14 Apr 2015 11:34:47 -0700 Received: from d03av01.boulder.ibm.com (localhost [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3EIZ4Ld011331 for ; Tue, 14 Apr 2015 12:35:04 -0600 Received: from d03nm119.boulder.ibm.com (d03nm119.boulder.ibm.com [9.63.40.225]) by d03av01.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t3EIZ4bv011312 for ; Tue, 14 Apr 2015 12:35:04 -0600 In-Reply-To: <1429001439720.47186@bearingpoint.com> References: <1429001439720.47186@bearingpoint.com> To: "Ant Users List" MIME-Version: 1.0 Subject: Exec Task Problem on Linux X-KeepSent: D3E8D15E:8623AF98-87257E27:006584DC; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP2 SHF37 August 25, 2014 Message-ID: From: Chris Barlock Date: Tue, 14 Apr 2015 14:35:03 -0400 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 9.0.1FP1|April 03, 2014) at 04/14/2015 12:35:04, Serialize complete at 04/14/2015 12:35:04 Content-Type: multipart/alternative; boundary="=_alternative 00661AD185257E27_=" X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15041418-0033-0000-0000-0000043E001F X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 00661AD185257E27_= Content-Type: text/plain; charset="US-ASCII" I have the following Ant script: When I run this, I get: [root@nc9042036240 ~]# /usr/apache-ant-1.9.4/bin/ant -v -f build.xml Apache Ant(TM) version 1.9.4 compiled on April 29 2014 Buildfile: /root/build.xml Detected Java version: 1.7 in: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre Detected OS: Linux parsing buildfile /root/build.xml with URI = file:/root/build.xml Project base dir set to: /root Build sequence for target(s) `all' is [all] Complete build sequence is [all, ] all: parsing buildfile jar:file:/usr/apache-ant-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/apache-ant-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file [mkdir] Skipping /root/CCM/srcProtobufJava because it already exists. [chmod] Executing 'chmod' with arguments: [chmod] '755' [chmod] '/root/protoc/bin/protoc' [chmod] [chmod] The ' characters around the executable and arguments are [chmod] not part of the command. [chmod] Applied chmod to 1 file and 0 directories. [exec] Current OS is Linux [exec] Setting environment variable: LD_LIBRARY_PATH=/root/protoc/lib [exec] Executing '/root/protoc/bin/protoc' with arguments: [exec] '--java_out=/root/CCM/srcProtobufJava' [exec] '--proto_path=/root/CCM/src/protobuf/asf' [exec] '/root/CCM/src/protobuf/asf/*.proto' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] /root/CCM/src/protobuf/asf/*.proto: No such file or directory [exec] Result: 1 Running the equivalent command manually works just fine: /root/protoc/bin/protoc --java_out=/root/CCM/srcProtobufJava/ --proto_path=/root/CCM/src/protobuf/asf /root/CCM/src/protobuf/asf/*.proto (It silently compiles a set of Google Protobuf files.) I originally set the executable to "/bin/sh" and the protoc command was the first arg, which you can see commented out above. With this arrangement, the exec task failed saying "cannot execute binary file" for protoc. Where have I gone wrong here? Thanks! Chris --=_alternative 00661AD185257E27_=--