Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 28239 invoked by uid 500); 15 Mar 2001 22:00:36 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 28172 invoked from network); 15 Mar 2001 22:00:34 -0000 From: "Larry Yates" To: Subject: RE: DUH...Why can't I get AWK to work? Date: Thu, 15 Mar 2001 17:00:13 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Thanks! Actually, using "ExecOn" versus "Exec" cured my wildcard expansion problem. However, I dumped the whole thing (awk/sed/et al) for the "REPLACE" task. ...like I tell everybody, Ant is the GREATEST THING SINCE SLICED BREAD!!! -Larry -----Original Message----- From: Conor MacNeill [mailto:conor@cortexebusiness.com.au] Sent: Wednesday, March 14, 2001 8:49 PM To: ant-user@jakarta.apache.org Subject: RE: DUH...Why can't I get AWK to work? Larry, Wildcard expansion under Unix is performed by the shell. It is not performed by Ant so you are passing *.html straight to awk. You should probably change the executable to /bin/sh and pass the awk command as an argument. Conor > -----Original Message----- > From: Larry Yates [mailto:lyates1@adelphia.net] > Sent: Thursday, 15 March 2001 12:25 PM > To: ant-user@jakarta.apache.org > Subject: DUH...Why can't I get AWK to work? > > > For some reason, I can't get awk to work properly from Ant > although it works > OK from the command line. Everything 'looks' OK (i.e. the directory does > contain html files)... > > Any ideas? > Is there another way of making transformations (editing) on a > list of files? > > Here's the relevant part of the build.xml file: > > > > > > > > > and here's the log: > modify: > [exec] Myos = NONSTOP_KERNEL > [exec] awk 'gsub("servlet/","servletdemo/")' > /test/applications/demo/release2/html/*.html > [exec] awk: Cannot find or open file > /test/applications/demo/release2/html/*.html. > [exec] > [exec] The source line number is 1. > [exec] Result: 2 > > BUILD SUCCESSFUL > > Thanks! > -Larry > >