ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fenlason, Josh" <jfenla...@ptc.com>
Subject RE: regexpmapper question
Date Thu, 19 Oct 2006 21:11:25 GMT
I'm using 1.6.5 also.
,
Josh. 

> -----Original Message-----
> From: Chun Ji [mailto:CJi@pro-unlimited.com] 
> Sent: Thursday, October 19, 2006 4:10 PM
> To: Ant Users List
> Subject: RE: regexpmapper question
> 
> 
> That works for me. Which ant do you use ? Mine is 1.6.5. 
> 
> -cji 
> 
> 
> -----Original Message-----
> From: Fenlason, Josh [mailto:jfenlason@ptc.com]
> Sent: Thursday, October 19, 2006 2:00 PM
> To: Ant Users List
> Subject: RE: regexpmapper question
> Importance: Low
> 
> 
> That moves foo-0.1.2-bar and all its contents into dest.dir.  
> I only want the contents of foo-0.1.2-bar moved into dest.dir.
> ,
> Josh. 
> 
> > -----Original Message-----
> > From: Chun Ji [mailto:CJi@pro-unlimited.com]
> > Sent: Thursday, October 19, 2006 3:51 PM
> > To: Ant Users List
> > Subject: RE: regexpmapper question
> > 
> > 
> > how about : 
> > <move todir="${dest.dir}">
> >     <fileset dir="${temp.dir}" includes="**/*" /> </move>
> > 
> > 
> > -----Original Message-----
> > From: Fenlason, Josh [mailto:jfenlason@ptc.com]
> > Sent: Thursday, October 19, 2006 1:15 PM
> > To: user@ant.apache.org
> > Subject: regexpmapper question
> > Importance: Low
> > 
> > 
> > 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.
> > <move todir="${dest.dir}">
> >     <fileset dir="${temp.dir}">
> >         <include name="*" />
> >     </fileset>
> >     <regexpmapper from="${temp.dir}/foo-(\d).(\d).(\d)-bar/*"
> > to="${destDir}" />
> > </move>
> > Unfortunately, this doesn't move anything or give me any errors.  I 
> > don't suppose anyone could give me some pointers?
> > Thanks in advance.
> > ,
> > Josh.
> >  
> >     
> > 
> > 
> ---------------------------------------------------------------------
> > 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
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message