Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 2728 invoked from network); 10 Mar 2008 14:01:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 14:01:26 -0000 Received: (qmail 1457 invoked by uid 500); 10 Mar 2008 14:01:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 1233 invoked by uid 500); 10 Mar 2008 14:01:16 -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 1222 invoked by uid 99); 10 Mar 2008 14:01:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 07:01:16 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.kitt.reilly@gmail.com designates 209.85.162.177 as permitted sender) Received: from [209.85.162.177] (HELO el-out-1112.google.com) (209.85.162.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 14:00:39 +0000 Received: by el-out-1112.google.com with SMTP id m34so1078679ele.22 for ; Mon, 10 Mar 2008 07:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=a207YKiJjs8qn2orKDmo8RTBK4Vd4RNcgqrTslALacw=; b=mXhZK5QLHV2j80fglQpnVkGk8ELA/YZ5/443puUu+5P5JP6kxI9tqMEa5IktFwbtycyvxy4eTRxViN38LCN4aZHUhYIiGva/JiP4zkeZt+jN0AsS+sxsk1wiH1l1XCe6qW0H/SA8B/k8fyFoHetWDUCMEvKY20InC8/qbgMwJX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rAApX2osUSA+MdexJ8Ke5MOqXkJZH2jM1z2h3cFV4eA/laoaA/NvSb4NBfxAMh8uCXTV5ixqT/PU59GrGFyVgB/pCOPOe9ECmfmgaRhHDQRpV1ko8UO+CpzQd7xm4OMgYqILZzRd22dg+aptIOiOTZ3E19HotJO5fRJfTV2M89A= Received: by 10.142.141.21 with SMTP id o21mr1654651wfd.84.1205157645261; Mon, 10 Mar 2008 07:00:45 -0700 (PDT) Received: by 10.142.144.1 with HTTP; Mon, 10 Mar 2008 07:00:45 -0700 (PDT) Message-ID: Date: Mon, 10 Mar 2008 14:00:45 +0000 From: "Peter Reilly" To: "Ant Users List" , rob@netplay.co.uk Subject: Re: How to get the filename of a dirset - not the full path? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Use basename to get name of the dir. Peter On Mon, Mar 10, 2008 at 1:13 PM, Rob Wilson wrote: > Now that I have a list of directories, I would like to get the directory > NAME rather than the full path - I am trying to use the name to create > directories elsewhere and copy files from a few different places. > > Basically I want something that returns me the name after the last slash - > but it looks like string manipulations might be trickier than first appears? > > This is what I currently have... > > > > > > > > > > > > > > > > > > Cheers, > Rob. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org