ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: Help with (regexp?) file mapper
Date Mon, 27 Jun 2005 12:42:29 GMT
In the future you tell us what you have already tried: it would be helpful 
in debugging the problem. Asking the question in the manner that you have 
might make one think that you haven't tried this at all & are just looking 
for someone to figure it out for you. 

In any case, this is untested, but it should be close; you may have to 
play around with the greediness qualifiers.

From: (.+)/(.+).xml
To:   \1/web/\2Form.java

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


Emmanouil Batsis <Emmanouil.Batsis@eurodyn.com> wrote on 06/27/2005 
08:17:17 AM:

> 
> Hi all,
> 
> I'm trying to both change the file name (add 'Form' suffix and change 
> from .xml to .java) and directory structure (add one more directory) for 

> example from
> 
> my/package/Foo.xml
> 
> to
> 
> my/package/web/FooForm.java
> 
> Looks like this is a piece of cake using the regexp file mapper but i 
> really suck in regular expressions, anyone have a similar example handy?
> 
> Thanks,
> 
> Manos
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message