Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 25591 invoked from network); 21 Jul 2004 19:49:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Jul 2004 19:49:10 -0000 Received: (qmail 90572 invoked by uid 500); 21 Jul 2004 19:48:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 90465 invoked by uid 500); 21 Jul 2004 19:48: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 90383 invoked by uid 99); 21 Jul 2004 19:48:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [198.180.219.46] (HELO redmailwall2.attws.com) (198.180.219.46) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 21 Jul 2004 12:48:47 -0700 Received: from viruswall1.entp.attws.com (viruswall1.entp.attws.com [135.214.40.161]) by redmailwall2.attws.com (8.12.10/8.12.6) with ESMTP id i6LJmfYB015245 for ; Wed, 21 Jul 2004 12:48:41 -0700 (PDT) Received: from nwestmail.entp.attws.com (localhost [127.0.0.1]) by viruswall1.entp.attws.com (8.12.10/8.12.10) with ESMTP id i6LJmdId004775 for ; Wed, 21 Jul 2004 12:48:39 -0700 (PDT) Received: from WA-MSGBH02-BTH.wireless.attws.com (WA-MSGBH02-BTH.wireless.attws.com [135.214.26.242]) by nwestmail.entp.attws.com (8.8.8p2+Sun/8.8.8) with ESMTP id MAA24360 for ; Wed, 21 Jul 2004 12:48:40 -0700 (PDT) Received: from wa-msg13-bth.wireless.attws.com ([135.214.26.234]) by WA-MSGBH02-BTH.wireless.attws.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 21 Jul 2004 12:48:40 -0700 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Subject: RE: How to get subproject file name from within the subproject? Date: Wed, 21 Jul 2004 12:48:40 -0700 Message-ID: <4507280BF7E8944D9D2DE82354DEB7EA24D8D5@wa-msg13-bth.wireless.attws.com> Thread-Topic: How to get subproject file name from within the subproject? Thread-Index: AcRu7tchfifep07RQeKQqvsM1ZyBHgAbKWqg From: "Hill, Richard" To: "Ant Users List" X-OriginalArrivalTime: 21 Jul 2004 19:48:40.0229 (UTC) FILETIME=[B88ECD50:01C46F5B] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks Ivan, The task did exactly what I needed. - R.C. Hill -----Original Message----- From: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com]=20 Sent: Tuesday, July 20, 2004 11:49 PM To: Ant Users List Subject: RE: How to get subproject file name from within the subproject? Hello Richard --- "Hill, Richard" wrote: > The following gets me the full path to the > subproject file. >=20 > value=3D"${ant.file}"/> >=20 > For example, if my path to the test file is=20 > c:\project\suite\TestFile.xml, I would like to extract only the > "TestFile" part of the path (the file name without > the extension) and > set it into a property. Currently, are there any Ant > tasks would allow > me to parse this information to a property? Yes, there are: takes the last directory element given a file or directory[1] while takes the path and skips the last directory element. HTH Ivan [1]http://ant.apache.org/manual/CoreTasks/basename.html [2]http://ant.apache.org/manual/CoreTasks/dirname.html =09 __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail=20 --------------------------------------------------------------------- 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