Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97408 invoked from network); 26 Oct 2006 07:02:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 07:02:10 -0000 Received: (qmail 10284 invoked by uid 500); 25 Oct 2006 18:20:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 10247 invoked by uid 500); 25 Oct 2006 18:20:52 -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 10227 invoked by uid 99); 25 Oct 2006 18:20:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 11:20:52 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [207.69.200.40] (HELO pop06.mail.atl.earthlink.net) (207.69.200.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 11:20:40 -0700 Received: from nc-71-51-254-71.dhcp.embarqhsd.net ([71.51.254.71] helo=flossware.homelinux.org) by pop06.mail.atl.earthlink.net with esmtp (Exim 3.36 #1) id 1GcnMR-0001LV-00 for user@ant.apache.org; Wed, 25 Oct 2006 14:20:19 -0400 Received: from [192.168.168.1] (adminserver.flossware.com [192.168.168.1]) by flossware.homelinux.org (Postfix) with ESMTP id 353DA185CF2 for ; Wed, 25 Oct 2006 14:20:18 -0400 (EDT) Message-ID: <453FAAE1.5050207@mindspring.com> Date: Wed, 25 Oct 2006 14:20:17 -0400 From: "Scot P. Floess" Reply-To: floess@mindspring.com User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: Ant Users List Subject: Re: String manipulation References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ant contrib has a nice propertyregex task if you need to do regular expressions. However, if this property contains a path and file name (which I believe is the case), try the basename task. Rodrigo Monteiro wrote: > Hello all, > > I'm new in Ant... so this might be an easy question. > > I pass in the command line an parameter > ant -Dtest=/tmp/tmp2/tmp3 -buildfile teste.xml > What I need to do is to get only the content of ${test} after the last > "/", in this case "tmp3". > How can I do that? > > regards, > Rodrigo. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org