Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 45837 invoked from network); 6 May 2006 06:44:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2006 06:44:14 -0000 Received: (qmail 67424 invoked by uid 500); 6 May 2006 06:44:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67382 invoked by uid 500); 6 May 2006 06:44:08 -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 67371 invoked by uid 99); 6 May 2006 06:44:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 23:44:08 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.49.21] (HELO web52911.mail.yahoo.com) (206.190.49.21) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 05 May 2006 23:44:07 -0700 Received: (qmail 39796 invoked by uid 60001); 6 May 2006 06:43:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Xr7czYdZL9gAaQQc8TNxoG8YaldVRSAAxynEpawbJGvK1BXg5vtpt9PLnRof4c1hrPKKjhE1XWW6ZwYWWLkJf1ZFYCcWRvjfTpZJCdkC/xPsV93zW1AC77k0NgSSPkyS9ledHMqdFJr+8iGyGh0Lc29EmTvEd4H/d/nEZ/6jdvU= ; Message-ID: <20060506064346.39794.qmail@web52911.mail.yahoo.com> Received: from [70.19.38.174] by web52911.mail.yahoo.com via HTTP; Fri, 05 May 2006 23:43:46 PDT Date: Fri, 5 May 2006 23:43:46 -0700 (PDT) From: "Ivan \"Rambius\" Ivanov" Subject: Re: Unix commads behaving different in Ant task To: Ant Users List In-Reply-To: <0BC4BDA530FB44419B8F47C0D31042AD01B0E683@dawg.fmgtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, --- Venkat Kotu wrote: > Hi, > > > > I have a situation where in I need to find all the > .jar files in a > directory and write it to a temp file. You can use a pure Ant solution using and : ${jar.files} > The command from the prompt is : find myDir/*.jar > and it lists all the > .jar files from myDir directory. Wildcards are expanded by the shell and not by the unix commands. Usually the commands run with and started via java.lang.Runtime.exec() so the shell is not used, so no wildcards expansion happens. > > The ant target defined for the purpose is: > > > > outputproperty="temp.txt"> > > line="$basedir}/myDir/*.jar"/> > > > > I believe it must be something like this: Of course it is better to use the pure ant solution. Anyway, wildcards with is asked often (so it is a FAQ candidate) and the last time it was asked was about a week ago, so please take a look at the archives for more information. Regards Ivan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org