Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 58887 invoked from network); 8 May 2003 00:33:27 -0000 Received: from c3po.aoltw.net (HELO netscape.com) (64.236.137.25) by daedalus.apache.org with SMTP; 8 May 2003 00:33:27 -0000 Received: from judge.mcom.com (judge.nscp.aoltw.net [10.169.8.47]) by netscape.com (8.10.0/8.10.0) with ESMTP id h480XZn11134 for ; Wed, 7 May 2003 17:33:35 -0700 (PDT) Received: from seychelle.nscp.aoltw.net ([10.169.63.16]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id HEJLJZ02.LFB for ; Wed, 7 May 2003 17:33:35 -0700 Date: Wed, 7 May 2003 17:33:36 -0700 From: pshenoy1/a@aol.com (Praveen Shenoy) Reply-To: pshenoy1/a@aol.com Subject: Re: Tar and exec problem To: "Ant Users List" In-Reply-To: <200305081014.09041.conor@cortexebusiness.com.au> Message-ID: <3EB9A5E0.8080104@aol.com> References: <001e01c314db$d4c094d0$bb01010a@HIRON> <3EB97D72.1070001@aol.com> <200305081014.09041.conor@cortexebusiness.com.au> X-Mailer: AOL Communicator (20030430.3 Win) Organization: AOL Time Warner MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N didn't work. output below. [exec] tar: /bin/tar: cannot execute binary file Praveen Conor MacNeill wrote: > On Thu, 8 May 2003 07:41 am, Praveen Shenoy wrote: > > I am using the exec task to run tar as we cannot use tar directly. > > Running tar directly, replaces all the file permissions. So, this is > how > > I am using it > > > > > > > failonerror="true" > > > > > > > > > > > > > It fails with > > > > [exec] /bin/tar: *: Cannot stat: No such file or directory > > [exec] /bin/tar: Error exit delayed from previous errors > > > > It doesn't like th "*" after the tar name. If I change it to a specific > > directory instead of "*" it works fine. Is there a problem using "*"? > > > > Wildcard expansion is performed by the shell. When you exec a command > from > Ant, the shell is not directly involved so no wildcard expansion is > performed. Instead of executing tar, you can execute /bin/sh and pass the > complete tar command as the args > > Conor > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >