Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 67800 invoked from network); 8 Nov 2002 16:16:12 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 Nov 2002 16:16:12 -0000 Received: (qmail 8783 invoked by uid 97); 8 Nov 2002 16:16:57 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 8762 invoked by uid 97); 8 Nov 2002 16:16:56 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 8724 invoked by uid 98); 8 Nov 2002 16:16:55 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <466F9A32C520F546A6FC9D7361CF9AB755DDF4@PKDWB01C.ad.sprint.com> From: "Buonassisi, Vincent [Contractor]" To: "'ANT Users List'" Subject: exec task Date: Fri, 8 Nov 2002 10:12:12 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2654.89) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C28741.98EFDAE0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C28741.98EFDAE0 Content-Type: text/plain Hi, I am trying to get the exec task to create the command echo ESS.5.4.03 | sed '...' and execute it. Instead, it looks like the exec task is creating the command echo "ESS.5.4.03 | sed '...'" and so what happens is that the shell command echo just prints what is in between the double quotes. Is it possible to have the exec task pass the command and its arguments to the shell as one command? I could use ant to create a script to do this or, I could do it using two exec tasks. But, I was hoping that I could use just one exec task and its arguements. This is my target: and this is the Ant result: test1: [echo] ESS.5.4.03 | sed s/\./_/g I am using ant 1.5.1 on unix. thanks, Vincent J. Buonassisi IT SP&A/Enterprise Reusable Components Sprint PCS (913) 762-9320 ------_=_NextPart_001_01C28741.98EFDAE0--