Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 98244 invoked from network); 18 Dec 2003 08:40:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Dec 2003 08:40:24 -0000 Received: (qmail 63043 invoked by uid 500); 18 Dec 2003 08:39:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 63020 invoked by uid 500); 18 Dec 2003 08:39:51 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 63006 invoked from network); 18 Dec 2003 08:39:50 -0000 Received: from unknown (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 18 Dec 2003 08:39:50 -0000 Received: from corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id hBI8e1d8062077 for ; Thu, 18 Dec 2003 08:40:01 GMT (envelope-from peter.reilly@corvil.com) Message-ID: <3FE1678C.4010005@corvil.com> Date: Thu, 18 Dec 2003 08:38:36 +0000 From: Peter Reilly User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: using foreach with fileset References: <879A5AD5DD0ED511891F0003473A9B5608FF7485@Z011004> In-Reply-To: <879A5AD5DD0ED511891F0003473A9B5608FF7485@Z011004> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N If using ant-contrib: one cannot use as the same scope for properties is used. On unix I use this: to extract the name of the executable from a filename. Peter Jan.Materne@rzf.fin-nrw.de wrote: >Use . >Because forms an implicit around the target, a new >scope for properties is opened and you can use that. > > >Jan > > > >>-----Original Message----- >>From: Mark Lybarger [mailto:Mark.Lybarger@CBC-Companies.com] >>Sent: Wednesday, December 17, 2003 7:44 PM >>To: Ant Users List (E-mail) >>Subject: using foreach with fileset >> >> >>i'm trying to use the ant-contrib foreach task to generate >>deployment descriptors for my ejbs. the bean.name in the >>descriptor.detail target is getting set to the full path name >>of the file that's included in the >>bean.implementation.classes path. is there a way to have it >>be just the actual file name apart from the file path name? >>perhaps a "better" way to do this? >> >> >> >inheritall="true" parallel="true"> >> >> >> >> >> >> beginning ${bean.name} >> >destDir="${basedir.webapp.web-inf.src.gen}"> >> >> >> >> >destinationFile="{0}-ejb-jar.xml"/> >> >destinationFile="{0}-weblogic-ejb-jar.xml"/> >> >> >> >>thanks! >> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003 >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org