Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 45333 invoked from network); 19 Oct 2006 20:58:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2006 20:58:45 -0000 Received: (qmail 81485 invoked by uid 500); 19 Oct 2006 20:58:39 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 81460 invoked by uid 500); 19 Oct 2006 20:58:39 -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 81443 invoked by uid 99); 19 Oct 2006 20:58:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 13:58:39 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of peter.kitt.reilly@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 13:58:38 -0700 Received: by nf-out-0910.google.com with SMTP id x29so1128568nfb for ; Thu, 19 Oct 2006 13:58:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=J+NDJslwLT1y4VDvR2ZfVH7+iSKbg7yVPlk6rHSLPp/TW10D3MuTq3fl0XvENAqMyCy1Vw9wKFq5OcR+lp8K9xUA3cgy04msWLyeRMuY6IDSGXxvp5SQp+FhmuAAWJM4HlTUyPMma7byHa043QgqQfourFO2Da+SMc4WmpJm51s= Received: by 10.49.94.20 with SMTP id w20mr6642764nfl; Thu, 19 Oct 2006 13:58:16 -0700 (PDT) Received: by 10.49.90.10 with HTTP; Thu, 19 Oct 2006 13:58:16 -0700 (PDT) Message-ID: Date: Thu, 19 Oct 2006 21:58:16 +0100 From: "Peter Reilly" To: "Ant Users List" Subject: Re: regexpmapper question In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 10/19/06, Fenlason, Josh wrote: > I'm trying to move some files using regexpmapper and I'm not having much > luck, probably because I'm no good at regular expressions. > I have a directory structure like this: > foo-0.1.2-bar/js > foo-0.1.2-bar/css > foo-0.1.2-bar/util/test > etc. > I would like to move everything inside of foo-0.1.2-bar, but not > foo-0.1.2-bar itself, to another directory. One thing is that the > version number in the top directory, foo-0.1.2-bar, will change in the > future, so I need the regular expression to account for that. > Here's what I've tried so far. > > > > > to="${destDir}" /> > > Unfortunately, this doesn't move anything or give me any errors. I > don't suppose anyone could give me some pointers? Thanks in advance. The solution is: I am not too sure if you want to do this (use a regex), it may make more sense to use a property containing the name : or: Peter > , > Josh. > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org